diff options
Diffstat (limited to 'antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST55.g')
-rwxr-xr-x | antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST55.g | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST55.g b/antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST55.g new file mode 100755 index 0000000..8029f91 --- /dev/null +++ b/antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST55.g @@ -0,0 +1,11 @@ + +grammar t058rewriteAST55; +options {language=JavaScript;output=AST;} +tokens {BLOCK;} +a : A A b=B B b=B c+=C C c+=C D {s=$D.text} -> A+ B+ C+ D ; +type : 'int' | 'float' ; +A : 'a' ; +B : 'b' ; +C : 'c' ; +D : 'd' ; +WS : (' '|'\n') {$channel=HIDDEN;} ;
\ No newline at end of file |