chibicc/main.c
Rui Ueyama 0b7663481d Merge Function with Var
No functional change
2020-10-07 20:13:26 +09:00

16 lines
287 B
C

#include "chibicc.h"
int main(int argc, char **argv) {
if (argc != 2)
error("%s: invalid number of arguments", argv[0]);
// Tokenize and parse.
Token *tok = tokenize(argv[1]);
Obj *prog = parse(tok);
// Traverse the AST to emit assembly.
codegen(prog);
return 0;
}