|
OpenMW
|
#include <fileparser.hpp>
Public Member Functions | |
| FileParser (ErrorHandler &errorHandler, Context &context) | |
| std::string | getName () const |
| Return script name. | |
| void | getCode (std::vector< Interpreter::Type_Code > &code) const |
| store generated code in \æ code. | |
| const Locals & | getLocals () const |
| get local variable declarations. | |
| 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) |
| virtual void | parseEOF (Scanner &scanner) |
| Handle EOF token. | |
| void | reset () |
| Reset parser to clean state. | |
Private Types | |
| enum | State { BeginState, NameState, BeginCompleteState, EndNameState, EndCompleteState } |
Private Attributes | |
| ScriptParser | mScriptParser |
| State | mState |
| std::string | mName |
| Locals | mLocals |
enum Compiler::FileParser::State [private] |
| Compiler::FileParser::FileParser | ( | ErrorHandler & | errorHandler, |
| Context & | context | ||
| ) |
| void Compiler::FileParser::getCode | ( | std::vector< Interpreter::Type_Code > & | code | ) | const |
store generated code in \æ code.
| const Locals & Compiler::FileParser::getLocals | ( | ) | const |
get local variable declarations.
| std::string Compiler::FileParser::getName | ( | ) | const |
Return script name.
| void Compiler::FileParser::parseEOF | ( | Scanner & | scanner | ) | [virtual] |
Handle EOF token.
Reimplemented from Compiler::Parser.
| bool Compiler::FileParser::parseKeyword | ( | int | keyword, |
| const TokenLoc & | loc, | ||
| Scanner & | scanner | ||
| ) | [virtual] |
Handle a keyword token.
Reimplemented from Compiler::Parser.
| bool Compiler::FileParser::parseName | ( | const std::string & | name, |
| const TokenLoc & | loc, | ||
| Scanner & | scanner | ||
| ) | [virtual] |
Handle a name token.
Reimplemented from Compiler::Parser.
| bool Compiler::FileParser::parseSpecial | ( | int | code, |
| const TokenLoc & | loc, | ||
| Scanner & | scanner | ||
| ) | [virtual] |
| void Compiler::FileParser::reset | ( | ) | [virtual] |
Reset parser to clean state.
Reimplemented from Compiler::Parser.
Locals Compiler::FileParser::mLocals [private] |
std::string Compiler::FileParser::mName [private] |
State Compiler::FileParser::mState [private] |
1.7.6.1