| 152 | } |
| 153 | |
| 154 | QueryParser::TreeNode QueryParser::parse(const std::string &expr) |
| 155 | { |
| 156 | lexer = QueryLexer(expr); |
| 157 | advance(); |
| 158 | |
| 159 | auto prog = orExpression(); |
| 160 | |
| 161 | if (!isEof()) { |
| 162 | throw std::invalid_argument("Extra characters at end of search"); |
| 163 | } |
| 164 | |
| 165 | return prog; |
| 166 | } |
| 167 | |
| 168 | std::string QueryParser::toLower(const std::string &string) |
| 169 | { |
no test coverage detected