Fix var parser

This commit is contained in:
otya128 committed 2016-12-29 17:25:05 +09:00
1 parent 8a65b44002
commit 706bb3715d
1 file changed
+5 -1
+5 -1
View File
@@ -1413,7 +1413,6 @@ class Parser
token = lex.front();
if(token.type != TokenType.Iden)
{
//TODO:VAR("A")の実装
syntaxError();
return null;
}
@@ -1432,6 +1431,11 @@ class Parser
if(token.type == TokenType.Comma)
{
lex.popFront();
//VAR A,B,=>error出ない
if(lex.front.type != TokenType.Iden)
{
break;
}
}
else
{