1 2grammar t058rewriteAST33; 3options {language=JavaScript;output=AST;} 4tokens {BLOCK;} 5a : lc='{' ID+ '}' -> ^(BLOCK[$lc,"block"] ID+) ; 6type : 'int' | 'float' ; 7ID : 'a'..'z'+ ; 8INT : '0'..'9'+; 9WS : (' '|'\n') {$channel=HIDDEN;} ;