aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t051treeRewriteASTe.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/JavaScript/tests/functional/t051treeRewriteASTe.g')
-rwxr-xr-xruntime/JavaScript/tests/functional/t051treeRewriteASTe.g9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t051treeRewriteASTe.g b/runtime/JavaScript/tests/functional/t051treeRewriteASTe.g
new file mode 100755
index 0000000..7dbfba8
--- /dev/null
+++ b/runtime/JavaScript/tests/functional/t051treeRewriteASTe.g
@@ -0,0 +1,9 @@
+grammar t051treeRewriteASTe;
+options {
+ language=JavaScript;
+ output=AST;
+}
+a : ID+ INT+ -> (^(ID INT))+ ;
+ID : 'a'..'z'+ ;
+INT : '0'..'9'+;
+WS : (' '|'\\n') {$channel=HIDDEN;} ;