パーサーのバグ修正,Comiplerを定義
This commit is contained in:
1 parent
2a4db7d6a5
commit
de5db9282c
4 files changed
+34
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user