1 grammar t057autoAST34; 2 options {language=JavaScript;output=AST;} 3 a returns [result] : id=ID id=ID {$result = "2nd id="+$id.text+";";} ; 4 ID : 'a'..'z'+ ; 5 INT : '0'..'9'+; 6 WS : (' '|'\n') {$channel=HIDDEN;} ; 7