aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/ast_top.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-05 20:55:12 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-05 20:55:12 +0000
commiteccb6c5360f213675a513e875bc424b8bdee16e7 (patch)
tree88b2826a2898223bcd5f02d5e5fd1f2c1c9b7e2a /c_compiler/include/ast_top.hpp
parent6b7f5137edb18372bc3e3076dab1cb45c8e4c2ec (diff)
downloadCompiler-eccb6c5360f213675a513e875bc424b8bdee16e7.tar.gz
Compiler-eccb6c5360f213675a513e875bc424b8bdee16e7.zip
Finished ast change and it works
Diffstat (limited to 'c_compiler/include/ast_top.hpp')
-rw-r--r--c_compiler/include/ast_top.hpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/c_compiler/include/ast_top.hpp b/c_compiler/include/ast_top.hpp
deleted file mode 100644
index 737ff58..0000000
--- a/c_compiler/include/ast_top.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef TOP_AST_HPP
-#define TOP_AST_HPP
-
-#include "ast.hpp"
-
-#include <vector>
-
-class ast_Top {
-public:
- void print() {
- for(size_t i = 0; i < vec.size(); ++i) {
- vec[i]->print();
- }
- }
-
- void push(const Base *stmnt) {
- vec.push_back(stmnt);
- }
-
-private:
- std::vector<const Base *> vec;
-};
-
-#endif