blob: ee4887ae47d6a683d7a20c252a9bce5ebec31e79 (
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
42
43
44
45
46
47
48
49
50
|
#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);
Statement() {}
virtual void print() const {}
virtual void printxml() const {}
virtual void printasm() const {}
};
/*
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
|