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

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

No files matched your search

+2 -4
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)