1
0

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

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

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;
}
}