1 #ifndef CSM_FILTER_PARSER_H
2 #define CSM_FILTER_PARSER_H
4 #include <boost/shared_ptr.hpp>
34 boost::shared_ptr<Node>
parseImp (
bool allowEmpty =
false,
bool ignoreOneShot =
false);
49 bool parse (
const std::string& filter,
bool allowPredefined =
true);
54 boost::shared_ptr<Node>
getFilter()
const;
Parser(const CSMWorld::Data &data)
Definition: parser.cpp:536
Token getNumberToken()
Definition: parser.cpp:140
bool parse(const std::string &filter, bool allowPredefined=true)
Definition: parser.cpp:539
boost::shared_ptr< Node > parseValue()
Definition: parser.cpp:406
std::string mInput
Definition: parser.hpp:20
bool mError
Definition: parser.hpp:22
int mIndex
Definition: parser.hpp:21
boost::shared_ptr< Node > parseText()
Definition: parser.cpp:342
void error()
Definition: parser.cpp:531
Token getNextToken()
Definition: parser.cpp:201
const CSMWorld::Data & mData
Definition: parser.hpp:23
boost::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:17
Token checkKeywords(const Token &token)
Turn string token into keyword token, if possible.
Definition: parser.cpp:182
boost::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
boost::shared_ptr< Node > mFilter
Definition: parser.hpp:19
Definition: parser.cpp:22
Token getStringToken()
Definition: parser.cpp:96
boost::shared_ptr< Node > parseNAry(const Token &keyword)
Definition: parser.cpp:295