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