TreeLang/main.cpp

19 lines
296 B
C++
Raw Permalink Normal View History

2022-10-19 02:21:42 +00:00
#include "compiler.cpp"
#include "global.h"
void help() {
LOG("Help called")
std::cout << "ITLC v0.0.0\n\nUSAGE:\n\titlc [File] {-h} {-o}";
}
int main( int argc, char *argv[] ) {
LOG("Program start")
if( argc == 1 ) {
help();
} else {
LOG(argv[1])
compiler(argv[1]);
2022-10-19 02:21:42 +00:00
}
return 0;
}