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