Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Function / Function.h
blob: 549d15ee608083553d329f1058d2646da3a39070 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef VALUE_FUNCTION
#define VALUE_FUNCTION

#include <string>
#include <deque>
#include "../Value.h"

class Function : public Value {
	std::string name;
	std::deque<Value*> args;

public:
	const std::string& get_name() const;
	const std::deque<Value*> get_args() const;

	Function(std::string name, std::deque<Value*> args);
	~Function() override = default;
};

#endif