1
0

std.typecons.Proxyを使うようにした

This commit is contained in:
otya128
2015-07-10 00:00:59 +09:00
parent c1f570879d
commit a410f80ed0
2 changed files with 10 additions and 1 deletions

View File

@@ -205,6 +205,7 @@
<filesToClean>*.obj;*.cmd;*.build;*.json;*.dep</filesToClean>
</Config>
<Folder name="SMILEBASIC">
<File path="builtinfunctions.d" />
<File path="compiler.d" />
<File path="error.d" />
<File path="main.d" />

View File

@@ -177,7 +177,15 @@ class PetitComputer
renderer = SDL_CreateRenderer(window, -1, 0);
GRPF.createTexture(renderer);
//とりあえず
auto parser = new Parser(readText("FIZZBUZZ.TXT").to!wstring);
auto parser = new Parser(/*readText("FIZZBUZZ.TXT").to!wstring*/"
FOR I=0 TO 10
?I;\"!\",\"=\",FACT(I)
NEXT
DEF FACT(N)
IF N<=1 THEN RETURN 1
RETURN N*FACT(N-1)
END");
auto vm = parser.compile();
bool running = true;
vm.init(this);