コンパイルして実行できるようにした
This commit is contained in:
1 parent
de5db9282c
commit
c33df7e4ac
5 files changed
+187
-23
No files matched your search
+3
-3
@@ -2,15 +2,15 @@ import std.stdio;
|
||||
import otya.smilebasic.parser;
|
||||
int main(string[] argv)
|
||||
{
|
||||
writeln("Hello D-World!");
|
||||
version(none)
|
||||
{
|
||||
auto parser = new Parser("ADD(ADD(1,2,3,4,5,6),2,3,4,5,6)");
|
||||
writeln(parser.calc());
|
||||
}
|
||||
|
||||
auto parser = new Parser("PRINT 1+1");
|
||||
parser.compile();
|
||||
auto parser = new Parser("PRINT 1+1,2+3;10-5");
|
||||
auto vm = parser.compile();
|
||||
vm.run();
|
||||
readln();
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user