SPLINK,SPOFS OUT実装,BuiltinFunctionクラスをオーバーロード対応にした

This commit is contained in:
otya128 committed 2015-08-28 18:34:38 +09:00
1 parent f149ce596f
commit 61c1fd06f4
5 files changed
+515 -113

No files matched your search

+16
View File
@@ -113,6 +113,15 @@ class VM
}
value = stack[--stacki];
}
void decSP()
{
if(stacki <= bp)
{
writeln("Stack underflow");
readln();
}
--stacki;
}
Value testGetGlobalVariable(wstring name)
{
return global[globalTable[name].index];
@@ -1391,3 +1400,10 @@ class PopSystemVariable : Code
return "popsysvar " ~ var.to!string;
}
}
class DecSP : Code
{
override void execute(VM vm)
{
vm.decSP;
}
}