nimp/compiler/source/app.d

19 lines
367 B
D
Raw Normal View History

import std.stdio;
2023-06-23 06:55:56 +00:00
import std.string;
import nimpc;
import streams;
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) {
auto sIn = FileInputStream(toStringz(filename));
auto tokens = tokenize(sIn);
}
return 0;
}