OpenMW
|
#include <parser.hpp>
Public Member Functions | |
Parser (const CSMWorld::Data &data) | |
bool | parse (const std::string &filter, bool allowPredefined=true) |
boost::shared_ptr< Node > | getFilter () const |
Throws an exception if the last call to parse did not return true. | |
Private Member Functions | |
Token | getStringToken () |
Token | getNumberToken () |
Token | getNextToken () |
Token | checkKeywords (const Token &token) |
Turn string token into keyword token, if possible. | |
boost::shared_ptr< Node > | parseImp (bool allowEmpty=false, bool ignoreOneShot=false) |
Will return a null-pointer, if there is nothing more to parse. | |
boost::shared_ptr< Node > | parseNAry (const Token &keyword) |
boost::shared_ptr< Node > | parseText () |
boost::shared_ptr< Node > | parseValue () |
void | error () |
Private Attributes | |
boost::shared_ptr< Node > | mFilter |
std::string | mInput |
int | mIndex |
bool | mError |
const CSMWorld::Data & | mData |
CSMFilter::Parser::Parser | ( | const CSMWorld::Data & | data | ) |
CSMFilter::Token CSMFilter::Parser::checkKeywords | ( | const Token & | token | ) | [private] |
Turn string token into keyword token, if possible.
void CSMFilter::Parser::error | ( | ) | [private] |
boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::getFilter | ( | ) | const |
Throws an exception if the last call to parse did not return true.
CSMFilter::Token CSMFilter::Parser::getNextToken | ( | ) | [private] |
CSMFilter::Token CSMFilter::Parser::getNumberToken | ( | ) | [private] |
CSMFilter::Token CSMFilter::Parser::getStringToken | ( | ) | [private] |
bool CSMFilter::Parser::parse | ( | const std::string & | filter, |
bool | allowPredefined = true |
||
) |
Discards any previous calls to parse
boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseImp | ( | bool | allowEmpty = false , |
bool | ignoreOneShot = false |
||
) | [private] |
Will return a null-pointer, if there is nothing more to parse.
boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseNAry | ( | const Token & | keyword | ) | [private] |
boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseText | ( | ) | [private] |
boost::shared_ptr< CSMFilter::Node > CSMFilter::Parser::parseValue | ( | ) | [private] |
const CSMWorld::Data& CSMFilter::Parser::mData [private] |
bool CSMFilter::Parser::mError [private] |
boost::shared_ptr<Node> CSMFilter::Parser::mFilter [private] |
int CSMFilter::Parser::mIndex [private] |
std::string CSMFilter::Parser::mInput [private] |