aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t056lexer10.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/JavaScript/tests/functional/t056lexer10.g')
-rwxr-xr-xruntime/JavaScript/tests/functional/t056lexer10.g6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t056lexer10.g b/runtime/JavaScript/tests/functional/t056lexer10.g
new file mode 100755
index 0000000..5c9ae98
--- /dev/null
+++ b/runtime/JavaScript/tests/functional/t056lexer10.g
@@ -0,0 +1,6 @@
+grammar t056lexer10;
+options {language=JavaScript;}
+a : A ;
+A : i+=I WS i+=I {$channel=0; for (var p=0; p<$i.length; p++) this.xlog(" "+$i[p].getText()); } ;
+fragment I : '0'..'9'+ ;
+WS : (' '|'\n') {$channel=HIDDEN;} ;