| 725 | } |
| 726 | |
| 727 | bool ParserContext::parsing_level_overflow(Input *input) |
| 728 | { |
| 729 | // whether nested parser calling too deeper |
| 730 | auto result = _parsing_level > PARSING_MAX_LEVEL_DEPTH; |
| 731 | if (result) |
| 732 | { |
| 733 | _last_error_token = input->read(); |
| 734 | _last_match_token = input->read(); |
| 735 | } |
| 736 | return result; |
| 737 | } |
| 738 | |
| 739 | ParserFunctor *ParserContext::cache(std::string name, ParserFunctor *parser) |
| 740 | { |