Parser for tag expressions. More...
#include <TagexprParser.h>

Public Member Functions | |
| void | setResult (const Expression &result) |
| void | addError (const std::string &message) |
| Expression | parse (const std::string &buffer) |
| Parse a string into a Tagexpr object. | |
Static Public Member Functions | |
| static TagexprParser * | instance () |
| Access the global instance of the parser. | |
Protected Attributes | |
| Expression | result |
| std::string | errorMessage |
Static Protected Attributes | |
| static TagexprParser * | _instance = 0 |
Parser for tag expressions.
This is a singleton class. It is not intended to be instantiated directly, but accessed using the instance() method.
| void tagcoll::TagexprParser::addError | ( | const std::string & | message | ) | [inline] |
References errorMessage.
| TagexprParser * TagexprParser::instance | ( | ) | [static] |
Access the global instance of the parser.
References _instance.
Referenced by tagcoll::Expression::Expression(), yyerror(), and yyparse().
| Expression tagcoll::TagexprParser::parse | ( | const std::string & | buffer | ) |
Parse a string into a Tagexpr object.
| buffer | The string with the expression to parse |
| ConsistencyCheckException | if parsing fails. |
References errorMessage, result, yyin, and yyparse().
Referenced by tagcoll::Expression::Expression().
| void tagcoll::TagexprParser::setResult | ( | const Expression & | result | ) | [inline] |
TagexprParser * TagexprParser::_instance = 0 [static, protected] |
Referenced by instance().
std::string tagcoll::TagexprParser::errorMessage [protected] |
Referenced by addError(), and parse().
Expression tagcoll::TagexprParser::result [protected] |
Referenced by parse().
1.6.2