blob: edfb958cd2a6ab49a67096e951dd85fc09b6bee4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef AST_FUNCTION_HPP
#define AST_FUNCTION_HPP
#include "ast.hpp"
class Function : public Node {
protected:
Type* type;
std::string id;
Declaration* parameter_list;
Statement* statement;
public:
Function(const std::string& _id, Declaration* _parameter_list, Statement* _statement);
virtual void print() const;
virtual void printxml() const;
virtual void printasm() const;
};
#endif
|