2023-06-01 11:35:12 +00:00
|
|
|
import std.stdio;
|
2023-06-23 06:55:56 +00:00
|
|
|
import std.string;
|
2023-06-27 04:45:28 +00:00
|
|
|
import std.file;
|
2023-06-23 06:55:56 +00:00
|
|
|
import nimpc;
|
2023-06-01 11:35:12 +00:00
|
|
|
|
2023-06-23 06:55:56 +00:00
|
|
|
int main(string[] args) {
|
|
|
|
if (args.length < 2) {
|
|
|
|
writeln("Missing required file args.");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
string[] files = args[1 .. $];
|
|
|
|
writefln!"Compiling %s"(files);
|
|
|
|
foreach (filename; files) {
|
2023-06-27 04:45:28 +00:00
|
|
|
auto tokens = tokenize(readText(filename));
|
|
|
|
foreach (token; tokens) {
|
|
|
|
writeln(token);
|
|
|
|
}
|
2023-06-23 06:55:56 +00:00
|
|
|
}
|
|
|
|
return 0;
|
2023-06-01 11:35:12 +00:00
|
|
|
}
|