1
0

パーサーのバグ修正,Comiplerを定義

This commit is contained in:
otya128
2015-06-04 20:51:03 +09:00
parent 2a4db7d6a5
commit de5db9282c
4 changed files with 34 additions and 3 deletions

25
SMILEBASIC/compiler.d Normal file
View File

@@ -0,0 +1,25 @@
module otya.smilebasic.compiler;
import otya.smilebasic.node;
import otya.smilebasic.vm;
import std.stdio;
class Compiler
{
Statements statements;
this(Statements statements)
{
this.statements = statements;
}
void compile()
{
Code[] code = new Code[0];
foreach(Statement i ; statements.statements)
{
switch(i.type)
{
default:
stderr.writeln("Compile:NotImpl ", i.type);
}
}
}
}