とりあえず構文木を一部作るようにして計算させた

This commit is contained in:
otya128 committed 2015-06-03 20:59:47 +09:00
1 parent a74268b59a
commit bb9ae9abdc
4 files changed
+117 -8

No files matched your search

+4
View File
@@ -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;
}