1
0
Files
otyaSMILEBASIC/SMILEBASIC/main.d

27 lines
590 B
D
Raw Normal View History

2015-06-03 19:51:42 +09:00
import std.stdio;
import std.utf;
import std.conv;
import std.file;
import otya.smilebasic.parser;
import otya.smilebasic.error;
2015-07-06 23:09:15 +09:00
import otya.smilebasic.petitcomputer;
import std.getopt;
2015-06-03 19:51:42 +09:00
int main(string[] argv)
{
bool nodirectmode;
string inputfile;
auto helpInformation = getopt(argv, "no-direct-mode", &nodirectmode, "file", &inputfile);
2015-08-23 14:44:01 +09:00
//try
2015-07-07 22:21:01 +09:00
{
auto pc = new PetitComputer();
pc.run(nodirectmode, inputfile);
2015-07-07 22:21:01 +09:00
}
2015-08-23 14:44:01 +09:00
/*(Throwable t)
2015-07-07 22:21:01 +09:00
{
writeln(std.windows.charset.toMBSz(t.to!string).to!string);
readln();
2015-08-23 14:44:01 +09:00
}*/
2015-06-03 19:51:42 +09:00
return 0;
}