From d2377ef22035ed93cbab1ae577e6f17f115891f7 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 14 Feb 2017 14:03:38 +0000 Subject: Working vector in parser --- c_parser/include/ast_top.hpp~ | 23 ----------------------- c_parser/include/top_ast.hpp~ | 14 -------------- 2 files changed, 37 deletions(-) delete mode 100644 c_parser/include/ast_top.hpp~ delete mode 100644 c_parser/include/top_ast.hpp~ (limited to 'c_parser') 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 - -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 - -class top_ast { -public: -private: - std::vector ast_vec; -}; - -#endif -- cgit