aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/include/ast_top.hpp
blob: 737ff58d91372bb28134ca964be422a0c8110885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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