aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-02-14 14:03:38 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-02-14 14:03:38 +0000
commitd2377ef22035ed93cbab1ae577e6f17f115891f7 (patch)
tree4c1f445f82a06ebe547d0d3530edf720fe042c19 /c_parser
parentec1bd2264a19542b4e36df08ad2dba2c50f437b3 (diff)
downloadCompiler-d2377ef22035ed93cbab1ae577e6f17f115891f7.tar.gz
Compiler-d2377ef22035ed93cbab1ae577e6f17f115891f7.zip
Working vector in parser
Diffstat (limited to 'c_parser')
-rw-r--r--c_parser/include/ast_top.hpp~23
-rw-r--r--c_parser/include/top_ast.hpp~14
2 files changed, 0 insertions, 37 deletions
diff --git a/c_parser/include/ast_top.hpp~ b/c_parser/include/ast_top.hpp~
deleted file mode 100644
index 89cf415..0000000
--- a/c_parser/include/ast_top.hpp~
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef TOP_AST_HPP
-#define TOP_AST_HPP
-
-#include "ast.hpp"
-
-#include <vector>
-
-class ast_Top {
-public:
- void print_vec() {
- for(size_t i = 0; i < ast_vec.size(); ++i) {
- ast_vec[i]->print();
- }
- }
-
- void push_back(const ast_Base *stmnt) {
- ast_vec.push_back(stmnt);
- }
-private:
- ast_Top_t ast_vec;
-};
-
-#endif
diff --git a/c_parser/include/top_ast.hpp~ b/c_parser/include/top_ast.hpp~
deleted file mode 100644
index 0252bde..0000000
--- a/c_parser/include/top_ast.hpp~
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef TOP_AST_HPP
-#define TOP_AST_HPP
-
-#include "ast.hpp"
-
-#include <vector>
-
-class top_ast {
-public:
-private:
- std::vector<const ast_Base*> ast_vec;
-};
-
-#endif