add function definition to Parser