blob: c58699c4a73cfcde12333f822ff2d471caef15ae (
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
|
#ifndef AST_FUNCTION_HPP
#define AST_FUNCTION_HPP
#include "ast.hpp"
class Function : public Node {
protected:
const Type* type;
std::string id;
const DeclarationList* parameter_list;
const Statement* statement;
public:
Function(const std::string& _id, const Statement* _comp_statement);
virtual ~Function();
virtual void printxml() const override;
virtual void printasm() const override;
void push_parameter(const Declaration* declaration) const;
};
#endif
|