grammar t016actions; options { language = JavaScript; } declaration returns [name] : functionHeader ';' {$name = $functionHeader.name;} ; functionHeader returns [name] : type ID {$name = $ID.text;} ; type : 'int' | 'char' | 'void' ; ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')* ; WS : ( ' ' | '\t' | '\r' | '\n' )+ {_channel=HIDDEN} ;