mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
added literal container and reworked output container handling
This commit is contained in:
parent
ba847ae9d8
commit
5cf3264bd3
12 changed files with 284 additions and 16 deletions
|
@ -7,13 +7,14 @@ namespace Compiler
|
|||
{
|
||||
ScriptParser::ScriptParser (ErrorHandler& errorHandler, Context& context,
|
||||
Locals& locals, bool end)
|
||||
: Parser (errorHandler, context), mLineParser (errorHandler, context, locals, mCode),
|
||||
mLocals (locals), mEnd (end)
|
||||
: Parser (errorHandler, context), mOutput (locals),
|
||||
mLineParser (errorHandler, context, locals, mOutput.getLiterals(), mOutput.getCode()),
|
||||
mEnd (end)
|
||||
{}
|
||||
|
||||
void ScriptParser::getCode (std::vector<Interpreter::Type_Code>& code) const
|
||||
{
|
||||
code = mCode;
|
||||
mOutput.getCode (code);
|
||||
}
|
||||
|
||||
bool ScriptParser::parseName (const std::string& name, const TokenLoc& loc,
|
||||
|
@ -61,7 +62,7 @@ namespace Compiler
|
|||
void ScriptParser::reset()
|
||||
{
|
||||
mLineParser.reset();
|
||||
mCode.clear();
|
||||
mOutput.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue