aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/ast.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/include/ast.hpp')
-rw-r--r--c_compiler/include/ast.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/c_compiler/include/ast.hpp b/c_compiler/include/ast.hpp
new file mode 100644
index 0000000..88ef36b
--- /dev/null
+++ b/c_compiler/include/ast.hpp
@@ -0,0 +1,24 @@
+#ifndef AST_HPP
+#define AST_HPP
+
+#include <vector>
+#include <string>
+#include <iostream>
+#include <map>
+#include <cstdint>
+
+struct VarLocation;
+
+typedef std::map<std::string, VarLocation> VariableStackBindings;
+
+#include "node.hpp"
+#include "type.hpp"
+#include "expression.hpp"
+#include "declaration.hpp"
+#include "statement.hpp"
+#include "function.hpp"
+#include "translation_unit.hpp"
+
+Node* parseAST();
+
+#endif