Adding function types to the parser