diff options
| author | 2022-08-03 20:24:47 +0200 | |
|---|---|---|
| committer | 2022-08-03 20:24:47 +0200 | |
| commit | 1625c50f0c0e4b1c7ba01a5df5713efaf6dce606 (patch) | |
| tree | bc5f24811413749b776964c1bbdec13a46dd9768 /bootstrap/main.c | |
initial
Diffstat (limited to 'bootstrap/main.c')
| -rw-r--r-- | bootstrap/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bootstrap/main.c b/bootstrap/main.c new file mode 100644 index 0000000..4acf913 --- /dev/null +++ b/bootstrap/main.c @@ -0,0 +1,14 @@ +#include "all.h" + +int +main(int argc, char **argv) { + struct parser P; + struct transunit tu = {0}; + + assert(argc > 1); + inittypes(); + initparser(&P, argv[1]); + parse(&tu, &P); + // dumptransunit(&tu); + cgen(stdout, &tu); +} |