1
2grammar t058rewriteAST20;
3options {language=JavaScript;output=AST;}
4a : (x=ID)? -> $x?;
5ID : 'a'..'z'+ ;
6INT : '0'..'9'+;
7WS : (' '|'\n') {$channel=HIDDEN;} ;