Added ParserBase for parser implementors. Optimized error recovery speed.