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