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