diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-15 12:28:20 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-15 12:28:20 +0000 |
commit | 2864f0483c9c7dc8b57184348a1b2a8ab3656ddd (patch) | |
tree | e42a867e821c2f2f9b57af73433e2714702b0641 /c_parser/include | |
parent | d2377ef22035ed93cbab1ae577e6f17f115891f7 (diff) | |
download | Compiler-2864f0483c9c7dc8b57184348a1b2a8ab3656ddd.tar.gz Compiler-2864f0483c9c7dc8b57184348a1b2a8ab3656ddd.zip |
Finished parser for declarations
Diffstat (limited to 'c_parser/include')
-rw-r--r-- | c_parser/include/ast_top.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c_parser/include/ast_top.hpp b/c_parser/include/ast_top.hpp index cafae3a..ff1cffa 100644 --- a/c_parser/include/ast_top.hpp +++ b/c_parser/include/ast_top.hpp @@ -7,13 +7,13 @@ class ast_Top { public: - void print_vec() { + void print() { for(size_t i = 0; i < ast_vec.size(); ++i) { ast_vec[i]->print(); } } - void push_back(const ast_Base *stmnt) { + void push(const ast_Base *stmnt) { ast_vec.push_back(stmnt); } private: |