1 #ifndef COMPILER_LINEPARSER_H_INCLUDED
2 #define COMPILER_LINEPARSER_H_INCLUDED
34 std::vector<Interpreter::Type_Code>&
mCode;
50 Literals& literals, std::vector<Interpreter::Type_Code>&
code,
51 bool allowExpression =
false);
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
Definition: lineparser.hpp:28
Definition: lineparser.hpp:27
ExprParser mExprParser
Definition: lineparser.hpp:42
void parseExpression(Scanner &scanner, const TokenLoc &loc)
Definition: lineparser.cpp:19
virtual bool parseInt(int value, const TokenLoc &loc, Scanner &scanner)
Definition: lineparser.cpp:62
Literals & mLiterals
Definition: lineparser.hpp:33
char mType
Definition: lineparser.hpp:41
Definition: lineparser.hpp:28
void reset()
Reset parser to clean state.
Definition: lineparser.cpp:553
Definition: context.hpp:10
Definition: lineparser.hpp:25
bool mAllowExpression
Definition: lineparser.hpp:43
virtual bool parseSpecial(int code, const TokenLoc &loc, Scanner &scanner)
Definition: lineparser.cpp:490
Location of a token in a source file.
Definition: tokenloc.hpp:10
Definition: exprparser.hpp:16
Definition: lineparser.hpp:29
virtual bool parseFloat(float value, const TokenLoc &loc, Scanner &scanner)
Definition: lineparser.cpp:74
bool mReferenceMember
Definition: lineparser.hpp:38
Definition: lineparser.hpp:25
Locals & mLocals
Definition: lineparser.hpp:32
std::string mMemberName
Definition: lineparser.hpp:37
State mState
Definition: lineparser.hpp:35
int mButtons
Definition: lineparser.hpp:39
Error handling.
Definition: errorhandler.hpp:14
virtual bool parseName(const std::string &name, const TokenLoc &loc, Scanner &scanner)
Definition: lineparser.cpp:86
Definition: lineparser.hpp:25
virtual bool parseKeyword(int keyword, const TokenLoc &loc, Scanner &scanner)
Definition: lineparser.cpp:201
std::string mExplicit
Definition: lineparser.hpp:40
Definition: lineparser.hpp:26
State
Definition: lineparser.hpp:22
Definition: lineparser.hpp:25
std::vector< Interpreter::Type_Code > & mCode
Definition: lineparser.hpp:34
Definition: lineparser.hpp:27
int code
Definition: crashcatcher.cpp:70
Literal values.
Definition: literals.hpp:13
Definition: lineparser.hpp:27
std::string mName
Definition: lineparser.hpp:36
Parser base class.
Definition: parser.hpp:17
Definition: lineparser.hpp:29
Definition: lineparser.hpp:29
LineParser(ErrorHandler &errorHandler, const Context &context, Locals &locals, Literals &literals, std::vector< Interpreter::Type_Code > &code, bool allowExpression=false)
Definition: lineparser.cpp:55
Definition: lineparser.hpp:24
Definition: lineparser.hpp:27
Definition: lineparser.hpp:26
Local variable declarations.
Definition: locals.hpp:12
Scanner.
Definition: scanner.hpp:21
const char * name
Definition: crashcatcher.cpp:59
Line parser, to be used in console scripts and as part of ScriptParser.
Definition: lineparser.hpp:20