blob: e715937df35de7788f8e0648142867a9520df5e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef AST_STATEMENT_HPP
#define AST_STATEMENT_HPP
#include "ast.hpp"
class Statement : public Node {
public:
Statement(const Node* _left = new EmptyNode, const Node* _right = new EmptyNode);
};
class CompoundStatement : public Statement {
public:
CompoundStatement(const Node* _dec = new EmptyNode, const Node* _statement = new EmptyNode);
virtual void printxml() const override;
};
class SelectionStatement : public Statement {
public:
SelectionStatement(const Node* _if, const Node* _else = new EmptyNode);
};
class ExpressionStatement : public Statement {
public:
ExpressionStatement(const Node* expr = new EmptyNode);
};
class JumpStatement : public Statement {
public:
JumpStatement(const Node* _el);
virtual void printasm() const override;
};
class IterationStatement : public Statement {
public:
IterationStatement(const Node* _el);
};
#endif
|