aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/include/ast_statement.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-02-17 17:27:38 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-02-17 17:27:38 +0000
commitc85746b6a6c3080bac409e0acb8cc8b332b2761e (patch)
tree7e37429cbe6014e2ed6aba6466b69cf914e2af38 /c_parser/include/ast_statement.hpp
parentb81f60d8b523260526af15361d4ce0ac4a7757c8 (diff)
downloadCompiler-c85746b6a6c3080bac409e0acb8cc8b332b2761e.tar.gz
Compiler-c85746b6a6c3080bac409e0acb8cc8b332b2761e.zip
Finished compound statement for function and added test cases
Diffstat (limited to 'c_parser/include/ast_statement.hpp')
-rw-r--r--c_parser/include/ast_statement.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/c_parser/include/ast_statement.hpp b/c_parser/include/ast_statement.hpp
index 725308b..f2c7175 100644
--- a/c_parser/include/ast_statement.hpp
+++ b/c_parser/include/ast_statement.hpp
@@ -6,6 +6,7 @@ protected:
mutable std::vector<const ast_Base*> ast_list;
public:
+ ast_Statement() {}
ast_Statement(const ast_Base* _el) {
ast_list.push_back(_el);
}
@@ -23,6 +24,7 @@ public:
class ast_CompoundStatement : public ast_Statement {
public:
+ ast_CompoundStatement() : ast_Statement() {}
ast_CompoundStatement(const ast_Base* _el) : ast_Statement(_el) {}
virtual void print() const override {