1
0

VERSION,FREEMEM,RIGHT$実装

This commit is contained in:
otya128
2015-08-27 21:35:15 +09:00
parent 7eabb17a22
commit f149ce596f
4 changed files with 30 additions and 5 deletions

View File

@@ -168,8 +168,14 @@ class Compiler
sysVariable["CSRY"] = new CSRY();
global["CSRZ"] = VMVariable(-1);
sysVariable["CSRZ"] = new CSRZ();
addSystemVariable("VERSION", new Version());
addSystemVariable("FREEMEM", new FreeMem());
}
void addSystemVariable(wstring name, SystemVariable var)
{
global[name] = VMVariable(-1);
sysVariable[name] = var;
}
SystemVariable[wstring] sysVariable;
Code[] code;
VMVariable[wstring] global;