PRINTの構文解析を修正

This commit is contained in:
otya128 committed 2015-06-04 23:03:37 +09:00
1 parent c33df7e4ac
commit 9b36cd2961
2 files changed
+7 -2

No files matched your search

+5 -1
View File
@@ -314,7 +314,11 @@ class Parser
}
print.addArgument(exp);
token = lex.front();
if(lex.empty()) break;
if(lex.empty())
{
print.addLine();
break;
}
if(token.type != TokenType.Colon && token.type != TokenType.NewLine && token.type != TokenType.Semicolon && token.type != TokenType.Comma)
{
syntaxError();