mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
added storage class for local variable declarations; added checks for variable re-declaration
This commit is contained in:
parent
21e0182ae2
commit
0cfeab622d
9 changed files with 139 additions and 9 deletions
|
@ -5,8 +5,10 @@
|
|||
|
||||
namespace Compiler
|
||||
{
|
||||
ScriptParser::ScriptParser (ErrorHandler& errorHandler, Context& context, bool end)
|
||||
: Parser (errorHandler, context), mLineParser (errorHandler, context), mEnd (end)
|
||||
ScriptParser::ScriptParser (ErrorHandler& errorHandler, Context& context,
|
||||
Locals& locals, bool end)
|
||||
: Parser (errorHandler, context), mLineParser (errorHandler, context, locals),
|
||||
mLocals (locals), mEnd (end)
|
||||
{}
|
||||
|
||||
bool ScriptParser::parseName (const std::string& name, const TokenLoc& loc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue