aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/compiler_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/src/compiler_main.cpp')
-rw-r--r--c_compiler/src/compiler_main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/c_compiler/src/compiler_main.cpp b/c_compiler/src/compiler_main.cpp
new file mode 100644
index 0000000..d551b8b
--- /dev/null
+++ b/c_compiler/src/compiler_main.cpp
@@ -0,0 +1,11 @@
+#include "ast.hpp"
+
+#include <iostream>
+
+int main(int argc, char *argv[]) {
+ const BaseList* ast = parseAST();
+
+ ast->printasm();
+
+ return 0;
+}