PRINTの構文解析を一応実�

This commit is contained in:
otya128 committed 2015-06-04 19:57:40 +09:00
1 parent f453d86a79
commit 2a4db7d6a5
4 files changed
+100 -3

No files matched your search

+8 -2
View File
@@ -3,8 +3,14 @@ import otya.smilebasic.parser;
int main(string[] argv)
{
writeln("Hello D-World!");
auto parser = new Parser("ADD(ADD(1,2,3,4,5,6),2,3,4,5,6)");
writeln(parser.calc());
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();
readln();
return 0;
}