diff options
Diffstat (limited to 'c_compiler/src/compiler_main.cpp')
-rw-r--r-- | c_compiler/src/compiler_main.cpp | 15 |
1 files changed, 15 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..a7d7eb3 --- /dev/null +++ b/c_compiler/src/compiler_main.cpp @@ -0,0 +1,15 @@ +#include "ast.hpp" + +#include <iostream> + +int main(int argc, char *argv[]) +{ + Node* ast = parseAST(); + + VariableStackBindings bindings; + int32_t var_count; + + ast->printasm(bindings, var_count); + + return 0; +} |