Start dumping assignment expressions to bytecode; revise bytecode instructions

This commit is contained in:
Ilmir Usmanov
2014-07-16 22:23:55 +04:00
parent 438318d788
commit 270ee301b4
6 changed files with 417 additions and 108 deletions
+8 -2
View File
@@ -541,7 +541,10 @@ parse_assigment_expression (void)
assignment_expression res;
if (tok.type != TOK_NAME)
goto parse_operands;
{
res.oper = AO_NONE;
goto parse_operands;
}
current_token_must_be (TOK_NAME);
@@ -813,7 +816,10 @@ parse_operator:
default:
lexer_save_token (tok);
res.oper = AO_NONE;
res.type = ET_NONE;
if (res.data.ops.op1.is_literal)
res.type = ET_LITERAL;
else
res.type = ET_IDENTIFIER;
res.data.ops.op2 = empty_operand;
return res;
}