diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-17 10:55:21 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-17 10:55:21 +0000 |
commit | a60337264c2551fffc2b5aeea12f40a06b7cb0e9 (patch) | |
tree | f9898cfcfed008a001bb03e3f8919f889107e469 /c_parser/include/ast_top.hpp | |
parent | 392805699c8d411400901b8e3d7298f0f9198bb5 (diff) | |
download | Compiler-a60337264c2551fffc2b5aeea12f40a06b7cb0e9.tar.gz Compiler-a60337264c2551fffc2b5aeea12f40a06b7cb0e9.zip |
Working variables finally by adding mutable
Diffstat (limited to 'c_parser/include/ast_top.hpp')
-rw-r--r-- | c_parser/include/ast_top.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c_parser/include/ast_top.hpp b/c_parser/include/ast_top.hpp index ff1cffa..142dfb8 100644 --- a/c_parser/include/ast_top.hpp +++ b/c_parser/include/ast_top.hpp @@ -12,10 +12,11 @@ public: ast_vec[i]->print(); } } - + void push(const ast_Base *stmnt) { ast_vec.push_back(stmnt); } + private: std::vector<const ast_Base *> ast_vec; }; |