Extract built-in functions out of parser.

To clean up parser code, the handling of built-in functions and their
parameters has been moved out of Parser.jj.

Change-Id: I1f085c8d80ef4039731d1119e0405c6708d57b74