1 2 grammar t058rewriteAST59; 3 options {language=JavaScript;output=AST;} 4 tokens {BLOCK;} 5 a : x+=b x+=b -> $x $x*; 6 b : ID ; 7 ID : 'a'..'z'+ ; 8 WS : (' '|'\n') {$channel=HIDDEN;} ;