とりあえず構文木を一部作るようにして計算させた
This commit is contained in:
1 parent
a74268b59a
commit
bb9ae9abdc
4 files changed
+117
-8
No files matched your search
@@ -1,7 +1,11 @@
|
||||
import std.stdio;
|
||||
import otya.smilebasic.parser;
|
||||
int main(string[] argv)
|
||||
{
|
||||
writeln("Hello D-World!");
|
||||
auto parser = new Parser("1+2");
|
||||
writeln();
|
||||
writeln(parser.calc());
|
||||
readln();
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user