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