|
OpenMW
|
Parse a single optional numeric value or string and discard it. More...
#include <discardparser.hpp>
Public Member Functions | |
| DiscardParser (ErrorHandler &errorHandler, const Context &context) | |
| virtual bool | parseInt (int value, const TokenLoc &loc, Scanner &scanner) |
| virtual bool | parseFloat (float value, const TokenLoc &loc, Scanner &scanner) |
| virtual bool | parseName (const std::string &name, const TokenLoc &loc, Scanner &scanner) |
| virtual bool | parseSpecial (int code, const TokenLoc &loc, Scanner &scanner) |
| virtual void | reset () |
| Reset parser to clean state. More... | |
| const TokenLoc & | getTokenLoc () const |
Public Member Functions inherited from Compiler::Parser | |
| Parser (ErrorHandler &errorHandler, const Context &context) | |
| constructor More... | |
| virtual | ~Parser () |
| destructor More... | |
| virtual bool | parseKeyword (int keyword, const TokenLoc &loc, Scanner &scanner) |
| virtual bool | parseComment (const std::string &comment, const TokenLoc &loc, Scanner &scanner) |
| virtual void | parseEOF (Scanner &scanner) |
| void | setOptional (bool optional) |
| void | start () |
| Mark parser as non-empty (at least one token has been parser). More... | |
| bool | isEmpty () const |
| Has anything been parsed? More... | |
Private Types | |
| enum | State { StartState, CommaState, MinusState } |
Private Attributes | |
| State | mState |
| TokenLoc | mTokenLoc |
Additional Inherited Members | |
Protected Member Functions inherited from Compiler::Parser | |
| void | reportSeriousError (const std::string &message, const TokenLoc &loc) |
| Report the error and throw a exception. More... | |
| void | reportWarning (const std::string &message, const TokenLoc &loc) |
| Report the warning without throwing an exception. More... | |
| void | reportEOF () |
| Report an unexpected EOF condition. More... | |
| ErrorHandler & | getErrorHandler () |
| Return error handler. More... | |
| const Context & | getContext () const |
| Return context. More... | |
Static Protected Member Functions inherited from Compiler::Parser | |
| static std::string | toLower (const std::string &name) |
Parse a single optional numeric value or string and discard it.
|
private |
| Compiler::DiscardParser::DiscardParser | ( | ErrorHandler & | errorHandler, |
| const Context & | context | ||
| ) |
| const TokenLoc & Compiler::DiscardParser::getTokenLoc | ( | ) | const |
|
virtual |
Handle a float token.
Reimplemented from Compiler::Parser.
|
virtual |
Handle an int token.
Reimplemented from Compiler::Parser.
|
virtual |
Handle a name token.
Reimplemented from Compiler::Parser.
|
virtual |
Handle a special character token.
Reimplemented from Compiler::Parser.
|
virtual |
Reset parser to clean state.
Reimplemented from Compiler::Parser.
|
private |
|
private |
1.8.6