OpenMW
|
#include <stringparser.hpp>
Public Member Functions | |
StringParser (ErrorHandler &errorHandler, Context &context, Literals &literals) | |
virtual bool | parseName (const std::string &name, const TokenLoc &loc, Scanner &scanner) |
virtual bool | parseSpecial (int code, const TokenLoc &loc, Scanner &scanner) |
void | append (std::vector< Interpreter::Type_Code > &code) |
Append code for parsed string. | |
void | smashCase () |
Transform all scanned strings to lower case. | |
void | reset () |
Reset parser to clean state (this includes the smashCase function). | |
Private Types | |
enum | State { StartState, CommaState } |
Private Attributes | |
Literals & | mLiterals |
State | mState |
std::vector < Interpreter::Type_Code > | mCode |
bool | mSmashCase |
enum Compiler::StringParser::State [private] |
Compiler::StringParser::StringParser | ( | ErrorHandler & | errorHandler, |
Context & | context, | ||
Literals & | literals | ||
) |
void Compiler::StringParser::append | ( | std::vector< Interpreter::Type_Code > & | code | ) |
Append code for parsed string.
bool Compiler::StringParser::parseName | ( | const std::string & | name, |
const TokenLoc & | loc, | ||
Scanner & | scanner | ||
) | [virtual] |
bool Compiler::StringParser::parseSpecial | ( | int | code, |
const TokenLoc & | loc, | ||
Scanner & | scanner | ||
) | [virtual] |
void Compiler::StringParser::reset | ( | ) | [virtual] |
Reset parser to clean state (this includes the smashCase function).
Reimplemented from Compiler::Parser.
void Compiler::StringParser::smashCase | ( | ) |
Transform all scanned strings to lower case.
std::vector<Interpreter::Type_Code> Compiler::StringParser::mCode [private] |
Literals& Compiler::StringParser::mLiterals [private] |
bool Compiler::StringParser::mSmashCase [private] |
State Compiler::StringParser::mState [private] |