Adding a AST mode to the formula parser