diff options
Diffstat (limited to 'asm/main.cpp')
-rw-r--r-- | asm/main.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/asm/main.cpp b/asm/main.cpp index 1ad17b1..17023e7 100644 --- a/asm/main.cpp +++ b/asm/main.cpp @@ -10,10 +10,24 @@ * Description: Entrypoint for assembly program */ +#include <cstdio> #include <iostream> -int main(void) +#include <lib/inst.h> + +#include "./lexer.hpp" + +void usage(const char *program_name, FILE *fp) +{ + fprintf(fp, + "Usage: %s FILE OUT-FILE\n" + "\tFILE: Source code to compile\n" + "\tOUT-FILE: Name of file to store bytecode\n", + program_name); +} + +int main(int argc, const char *argv[]) { - std::cout << "Hello, world!" << std::endl; + usage(argv[1], stdout); return 0; } |