Rewrite parser to generate a naive parse tree, which will be reduced
later to an AST, rather than trying to produce an AST during parsing.