mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
fixed parser bug: I_RET was not always added
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@174 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -449,7 +449,7 @@ void parseOper(TokenIterator& input, Script& script, Precedence minPrec, Instruc
|
||||
Token next = input.peek(1);
|
||||
if (next == TOK_RPAREN || next == TOK_EOF) {
|
||||
// allow ; at end of expression without errors
|
||||
return;
|
||||
break;
|
||||
}
|
||||
script.addInstruction(I_POP); // discard result of first expression
|
||||
parseOper(input, script, PREC_SET);
|
||||
|
||||
Reference in New Issue
Block a user