1
0

INC/DECを配列に対応させた

This commit is contained in:
otya128
2016-08-31 23:16:44 +09:00
parent ed8017b4e0
commit f6557d2e9a
5 changed files with 316 additions and 20 deletions

View File

@@ -1151,14 +1151,12 @@ class Parser
bool dec = token.type == TokenType.Dec;
lex.popFront();
token = lex.front();
if(token.type != TokenType.Iden)
Expression var = expression();
if(!isLValue(var))
{
syntaxError();
return null;
}
wstring var = token.value.stringValue;
//TODO:Array
lex.popFront();
token = lex.front();
Expression expr;
if(token.type == TokenType.Comma)