extended scripting extensions to code segment 3 (instructions and functions with optional arguments)

This commit is contained in:
Marc Zinnschlag 2010-08-22 14:00:30 +02:00
parent b3cc3073a3
commit c18e83d7c0
4 changed files with 160 additions and 80 deletions

View file

@ -242,9 +242,9 @@ namespace Compiler
if (extensions->isInstruction (keyword, argumentType, mState==ExplicitState))
{
mExprParser.parseArguments (argumentType, scanner, mCode, true);
int optionals = mExprParser.parseArguments (argumentType, scanner, mCode, true);
extensions->generateInstructionCode (keyword, mCode, mLiterals, mExplicit);
extensions->generateInstructionCode (keyword, mCode, mLiterals, mExplicit, optionals);
mState = EndState;
return true;
}