Skip to content

Commit 533ca7d

Browse files
committed
Fixs, Ajouts de fonctions essentielles.
1 parent 4c07a10 commit 533ca7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Parser.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <stdexcept>
88
#include <optional>
99
#include <map>
10+
#include <functional>
1011
#include <algorithm>
1112

1213
#include "TokenBuilding.h"
@@ -42,10 +43,13 @@ namespace FPL {
4243
bool ChangerInstruction();
4344

4445
// Fonctions :
46+
std::map<std::string, FonctionDefinition> mFonctions;
4547
bool FonctionInstruction(auto parseStart);
4648
bool AppelerInstruction();
4749
bool isFonction(std::string &name) const;
48-
std::map<std::string, FonctionDefinition> mFonctions;
50+
bool isFonctionArgument(std::string &fonction, std::string &argument);
51+
std::optional<FonctionDefinition> getFonction(std::string &fonction);
52+
std::optional<ArgumentDefinition> getArgument(std::string &fonction, std::string &name);
4953

5054

5155
// Utils :

0 commit comments

Comments
 (0)