aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/statement.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-06 21:04:01 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-06 21:04:01 +0000
commit30f7753bb64ad95750dbd6bce9b7ab3c077b92aa (patch)
treeded96a4f3d2b934b1b769c4e2bc21b0638519346 /c_compiler/src/statement.cpp
parentfdd6ff07cee824078c5315bf07926ee15bbdde85 (diff)
downloadCompiler-30f7753bb64ad95750dbd6bce9b7ab3c077b92aa.tar.gz
Compiler-30f7753bb64ad95750dbd6bce9b7ab3c077b92aa.zip
Made good progress
Diffstat (limited to 'c_compiler/src/statement.cpp')
-rw-r--r--c_compiler/src/statement.cpp4
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();