diff options
Diffstat (limited to 'antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST33.g')
-rwxr-xr-x | antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST33.g | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST33.g b/antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST33.g new file mode 100755 index 0000000..e475463 --- /dev/null +++ b/antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST33.g @@ -0,0 +1,9 @@ + +grammar t058rewriteAST33; +options {language=JavaScript;output=AST;} +tokens {BLOCK;} +a : lc='{' ID+ '}' -> ^(BLOCK[$lc,"block"] ID+) ; +type : 'int' | 'float' ; +ID : 'a'..'z'+ ; +INT : '0'..'9'+; +WS : (' '|'\n') {$channel=HIDDEN;} ;
\ No newline at end of file |