| 1828 | } |
| 1829 | |
| 1830 | ParserFunctor *ParserContext::named_parser(std::string name) |
| 1831 | { |
| 1832 | auto found = _named_parser_functors.find(name); |
| 1833 | if (found != _named_parser_functors.end()) |
| 1834 | return found->second; |
| 1835 | else |
| 1836 | { |
| 1837 | auto *fp = new CachedParserFunctor(this, name); |
| 1838 | add_parser_functor(fp); |
| 1839 | _named_parser_functors[name] = fp; |
| 1840 | return fp; |
| 1841 | } |
| 1842 | } |
| 1843 | |
| 1844 | ParserFunctor *ParserContext::p_and(ParserFunctor *parser1, ParserFunctor *parser2, |
| 1845 | ParserFunctor *parser3, ParserFunctor *parser4, ParserFunctor *parser5, |
no test coverage detected