1 #ifndef CSM_FILTER_PARSER_H
2 #define CSM_FILTER_PARSER_H
32 std::shared_ptr<Node>
parseImp (
bool allowEmpty =
false,
bool ignoreOneShot =
false);
47 bool parse (
const std::string& filter,
bool allowPredefined =
true);
Parser(const CSMWorld::Data &data)
Definition: parser.cpp:536
std::shared_ptr< Node > parseText()
Definition: parser.cpp:342
std::shared_ptr< Node > parseImp(bool allowEmpty=false, bool ignoreOneShot=false)
Will return a null-pointer, if there is nothing more to parse.
Definition: parser.cpp:238
Token getNumberToken()
Definition: parser.cpp:140
bool parse(const std::string &filter, bool allowPredefined=true)
Definition: parser.cpp:539
std::string mInput
Definition: parser.hpp:18
bool mError
Definition: parser.hpp:20
int mIndex
Definition: parser.hpp:19
std::shared_ptr< Node > parseValue()
Definition: parser.cpp:406
void error()
Definition: parser.cpp:531
std::shared_ptr< Node > parseNAry(const Token &keyword)
Definition: parser.cpp:295
Token getNextToken()
Definition: parser.cpp:201
const CSMWorld::Data & mData
Definition: parser.hpp:21
std::shared_ptr< Node > getFilter() const
Throws an exception if the last call to parse did not return true.
Definition: parser.cpp:615
Definition: parser.hpp:15
Token checkKeywords(const Token &token)
Turn string token into keyword token, if possible.
Definition: parser.cpp:182
std::shared_ptr< Node > mFilter
Definition: parser.hpp:17
Definition: parser.cpp:22
Token getStringToken()
Definition: parser.cpp:96