android13/external/antlr/runtime/JavaScript/tests/functional/t058rewriteAST41.g

9 lines
220 B
Plaintext
Executable File

grammar t058rewriteAST41;
options {language=JavaScript;output=AST;}
tokens {BLOCK;}
a : atom -> ^(atom atom) ; // NOT CYCLE! (dup atom)
atom : INT ;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {$channel=HIDDEN;} ;