diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-06 21:04:01 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-06 21:04:01 +0000 |
commit | 30f7753bb64ad95750dbd6bce9b7ab3c077b92aa (patch) | |
tree | ded96a4f3d2b934b1b769c4e2bc21b0638519346 /c_compiler/src/statement.cpp | |
parent | fdd6ff07cee824078c5315bf07926ee15bbdde85 (diff) | |
download | Compiler-30f7753bb64ad95750dbd6bce9b7ab3c077b92aa.tar.gz Compiler-30f7753bb64ad95750dbd6bce9b7ab3c077b92aa.zip |
Made good progress
Diffstat (limited to 'c_compiler/src/statement.cpp')
-rw-r--r-- | c_compiler/src/statement.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c_compiler/src/statement.cpp b/c_compiler/src/statement.cpp index 14d5808..dcd2271 100644 --- a/c_compiler/src/statement.cpp +++ b/c_compiler/src/statement.cpp @@ -67,9 +67,13 @@ void CompoundStatement::count_variables(int32_t& var_count) const while(declaration_list != nullptr) { var_count++; + std::cout << declaration_list->getType() << std::endl; + declaration_list = declaration_list->getNextListItem(); } + std::cout << declaration->getType() << std::endl; + var_count++; declaration = declaration->getNext(); |