MCPcopy Create free account
hub / github.com/YACReader/yacreader / parse

Method parse

YACReaderLibrary/db/query_parser.cpp:154–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154QueryParser::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
168std::string QueryParser::toLower(const std::string &string)
169{

Callers 3

mainFunction · 0.80
foldersSearchQueryFunction · 0.80
comicsSearchQueryFunction · 0.80

Calls 1

QueryLexerClass · 0.85

Tested by

no test coverage detected