Public Member Functions |
| LineParser (ErrorHandler &errorHandler, Context &context, Locals &locals, Literals &literals, std::vector< Interpreter::Type_Code > &code, bool allowExpression=false) |
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 | parseKeyword (int keyword, const TokenLoc &loc, Scanner &scanner) |
virtual bool | parseSpecial (int code, const TokenLoc &loc, Scanner &scanner) |
void | reset () |
| Reset parser to clean state.
|
Private Types |
enum | State {
BeginState,
ShortState,
LongState,
FloatState,
SetState,
SetLocalVarState,
SetGlobalVarState,
SetPotentialMemberVarState,
SetMemberVarState,
SetMemberVarState2,
MessageState,
MessageCommaState,
MessageButtonState,
MessageButtonCommaState,
EndState,
PotentialExplicitState,
ExplicitState,
MemberState
} |
Private Member Functions |
void | parseExpression (Scanner &scanner, const TokenLoc &loc) |
Private Attributes |
Locals & | mLocals |
Literals & | mLiterals |
std::vector
< Interpreter::Type_Code > & | mCode |
State | mState |
std::string | mName |
std::string | mMemberName |
int | mButtons |
std::string | mExplicit |
char | mType |
ExprParser | mExprParser |
bool | mAllowExpression |
Line parser, to be used in console scripts and as part of ScriptParser.