aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/JavaScript/tests/functional/t056lexer4.g
diff options
context:
space:
mode:
Diffstat (limited to 'antlr-3.4/runtime/JavaScript/tests/functional/t056lexer4.g')
-rwxr-xr-xantlr-3.4/runtime/JavaScript/tests/functional/t056lexer4.g7
1 files changed, 7 insertions, 0 deletions
diff --git a/antlr-3.4/runtime/JavaScript/tests/functional/t056lexer4.g b/antlr-3.4/runtime/JavaScript/tests/functional/t056lexer4.g
new file mode 100755
index 0000000..c715b25
--- /dev/null
+++ b/antlr-3.4/runtime/JavaScript/tests/functional/t056lexer4.g
@@ -0,0 +1,7 @@
+grammar t056lexer4;
+options {language=JavaScript;}
+tokens {X;}
+a : X EOF {this.xlog(this.input);} ;
+A : '-' I {$type = this.X;} ;
+I : '0'..'9'+ ;
+WS : (' '|'\n') {$channel=HIDDEN;} ;