-
Notifications
You must be signed in to change notification settings - Fork 1
/
Procedure.h
28 lines (22 loc) · 889 Bytes
/
Procedure.h
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
#ifndef PROCEDURE_H
#define PROCEDURE_H
#include "ArbreAbstrait.h"
#include "TableSymboles.h"
#include "SymboleValue.h"
#include <vector>
class Procedure : public Noeud {
public:
Procedure(TableSymboles table, Noeud* sequence, std::vector<SymboleValue*> parametres);
void accepter(Visiteur& visiteur) override;
void empiler(std::vector<Valeur*> parametres);
inline void setNom(std::string nom) { m_nom = nom; }
inline std::string getNom() const { return m_nom; }
inline Noeud* getSequence() const { return m_sequence; }
inline std::vector<SymboleValue*> getParametres() const { return m_params; }
private:
TableSymboles m_table;
Noeud* m_sequence;
std::vector<SymboleValue*> m_params;
std::string m_nom;
};
#endif /* PROCEDURE_H */