aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t058rewriteAST62.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/JavaScript/tests/functional/t058rewriteAST62.g')
-rwxr-xr-xruntime/JavaScript/tests/functional/t058rewriteAST62.g8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t058rewriteAST62.g b/runtime/JavaScript/tests/functional/t058rewriteAST62.g
new file mode 100755
index 0000000..6ae8d72
--- /dev/null
+++ b/runtime/JavaScript/tests/functional/t058rewriteAST62.g
@@ -0,0 +1,8 @@
+
+grammar t058rewriteAST62;
+options {language=JavaScript;output=AST;}
+tokens {BLOCK;}
+a : x=ID (y=b)? -> ($x $y)?;
+b : ID ;
+ID : 'a'..'z'+ ;
+WS : (' '|'\n') {$channel=HIDDEN;} ; \ No newline at end of file