| 98 | } |
| 99 | |
| 100 | bool TextParser::parse(char c) { |
| 101 | if (!tryParse(c)) { |
| 102 | setErrorAtCurrentPosition(fmt::format("Expecting character '{}'", c)); |
| 103 | return false; |
| 104 | } |
| 105 | |
| 106 | return true; |
| 107 | } |
| 108 | |
| 109 | bool TextParser::tryParse(std::string_view term) { |
| 110 | auto positionBefore = _position; |
no outgoing calls
no test coverage detected