aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/statement.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-03 21:24:20 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-03 21:24:20 +0000
commitee069912377bf8f5069489e527af642953d5883d (patch)
tree97fa985de635d0b5c82158411b80ac3f7b08a915 /c_compiler/include/statement.hpp
parent76de3faca823ce51e32f0e3c4bcc6127492efdc5 (diff)
downloadCompiler-ee069912377bf8f5069489e527af642953d5883d.tar.gz
Compiler-ee069912377bf8f5069489e527af642953d5883d.zip
Going to test
Diffstat (limited to 'c_compiler/include/statement.hpp')
-rw-r--r--c_compiler/include/statement.hpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/c_compiler/include/statement.hpp b/c_compiler/include/statement.hpp
index bf15aa5..e715937 100644
--- a/c_compiler/include/statement.hpp
+++ b/c_compiler/include/statement.hpp
@@ -4,43 +4,38 @@
#include "ast.hpp"
-class Statement : public BaseNode {
+class Statement : public Node {
public:
- Statement(const Base* _left = new EmptyNode, const Base* _right = new EmptyNode);
-};
-
-class StatementList : public BaseList {
-public:
- StatementList(const Base* _statement);
+ Statement(const Node* _left = new EmptyNode, const Node* _right = new EmptyNode);
};
class CompoundStatement : public Statement {
public:
- CompoundStatement(const Base* _dec = new EmptyNode, const Base* _statement = new EmptyNode);
+ CompoundStatement(const Node* _dec = new EmptyNode, const Node* _statement = new EmptyNode);
virtual void printxml() const override;
};
class SelectionStatement : public Statement {
public:
- SelectionStatement(const Base* _if, const Base* _else = new EmptyNode);
+ SelectionStatement(const Node* _if, const Node* _else = new EmptyNode);
};
class ExpressionStatement : public Statement {
public:
- ExpressionStatement(const Base* expr = new EmptyNode);
+ ExpressionStatement(const Node* expr = new EmptyNode);
};
class JumpStatement : public Statement {
public:
- JumpStatement(const Base* _el);
+ JumpStatement(const Node* _el);
virtual void printasm() const override;
};
class IterationStatement : public Statement {
public:
- IterationStatement(const Base* _el);
+ IterationStatement(const Node* _el);
};
#endif