1
0

Fix var parser

This commit is contained in:
otya128
2016-12-29 17:25:05 +09:00
parent 8a65b44002
commit 706bb3715d

View File

@@ -1413,7 +1413,6 @@ class Parser
token = lex.front(); token = lex.front();
if(token.type != TokenType.Iden) if(token.type != TokenType.Iden)
{ {
//TODO:VAR("A")の実装
syntaxError(); syntaxError();
return null; return null;
} }
@@ -1432,6 +1431,11 @@ class Parser
if(token.type == TokenType.Comma) if(token.type == TokenType.Comma)
{ {
lex.popFront(); lex.popFront();
//VAR A,B,=>error出ない
if(lex.front.type != TokenType.Iden)
{
break;
}
} }
else else
{ {