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