IMplement STOP

This commit is contained in:
otya128 committed 2017-07-04 20:28:49 +09:00
1 parent e5e784a9da
commit bb586dbb55
6 files changed
+31 -1

No files matched your search

+9
View File
@@ -1294,6 +1294,15 @@ class Compiler
case NodeType.CallBG:
compileCallBG(cast(otya.smilebasic.node.CallBG)i, s);
break;
case NodeType.StopStatement:
{
if (isDirectMode)
{
throw new CantUseFromDirectMode();
}
genCode(new Stop());
break;
}
default:
stderr.writeln("Compile:NotImpl ", i.type);
}