1
0

Fix USE/EXEC error check

This commit is contained in:
otya128
2016-12-23 17:18:43 +09:00
parent 0440c33184
commit f617b08def

View File

@@ -1111,6 +1111,11 @@ class Parser
{
lex.popFront();
auto expr = expression();
if (!expr)
{
syntaxError();
return null;
}
return new Use(expr, lex.location);
}
break;
@@ -1118,6 +1123,11 @@ class Parser
{
lex.popFront();
auto expr = expression();
if (!expr)
{
syntaxError();
return null;
}
return new Exec(expr, lex.location);
}
break;