summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorCarson Fleming <[email protected]>2026-03-26 19:46:35 -0700
committerCarson Fleming <[email protected]>2026-03-26 19:46:35 -0700
commit28157efe6ef65394d8930a79200b9243ee919f47 (patch)
tree5dd492ae8d27e99d066b88e76f5304fad270ee11 /main.c
parent2e4f713ede25fb6147571858779fde542144c76f (diff)
downloadccc-28157efe6ef65394d8930a79200b9243ee919f47.tar.gz
mostly there except need to implement one more hash map
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index c86efdd..e2aca11 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,6 @@
#include "lexer.h"
#include "parser.h"
+#include "codegen.h"
#include <stdlib.h>
#include <stdio.h>
@@ -35,8 +36,6 @@ void test_lexer(int argc, char** argv) {
}
}
-void gdb_break_here() {}
-
void test_parser(int argc, char** argv) {
struct root_node* root;
struct root_node** p_cur = &root;
@@ -44,7 +43,8 @@ void test_parser(int argc, char** argv) {
*p_cur = parse(argv[i]);
p_cur = &((*p_cur)->next);
}
- gdb_break_here();
+
+ emit_code(root, "test/simple.s");
ast_destroy(root);
}