Experiment with refactoring the parser to be non-recursive, to see if that speeds up parsing. See #363.