Add AST-based parser for formulas.