diff options
Diffstat (limited to 'runtime/JavaScript/tests/functional/t058rewriteAST45.g')
-rwxr-xr-x | runtime/JavaScript/tests/functional/t058rewriteAST45.g | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t058rewriteAST45.g b/runtime/JavaScript/tests/functional/t058rewriteAST45.g new file mode 100755 index 0000000..04dceb5 --- /dev/null +++ b/runtime/JavaScript/tests/functional/t058rewriteAST45.g @@ -0,0 +1,9 @@ + +grammar t058rewriteAST45; +options {language=JavaScript;output=AST;} +tokens {MOD;} +a : modifier? type ID (',' ID)* ';' -> ^(type ^(MOD modifier)? ID)+ ; +type : 'int' ; +modifier : 'public' ; +ID : 'a'..'z'+ ; +WS : (' '|'\n') {$channel=HIDDEN;} ;
\ No newline at end of file |