PRINTの構文解析を一応実�
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user