Parser for a generic syntax with multi-word phrases, configurable infix operators, and function application