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