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