34 lines
756 B
C++
34 lines
756 B
C++
/* Copyright (C) 2024 Aryadev Chavali
|
|
|
|
* You may distribute and modify this code under the terms of the
|
|
* GPLv2 license. You should have received a copy of the GPLv2
|
|
* license with this file. If not, please write to:
|
|
* aryadev@aryadevchavali.com.
|
|
|
|
* Created: 2024-04-14
|
|
* Author: Aryadev Chavali
|
|
* Description: Entrypoint for assembly program
|
|
*/
|
|
|
|
#include <cstdio>
|
|
#include <iostream>
|
|
|
|
#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[])
|
|
{
|
|
usage(argv[1], stdout);
|
|
return 0;
|
|
}
|