Started implementation of function parsing

This commit is contained in:
2021-05-04 18:49:18 +02:00
parent 2ff14cd2f1
commit 1516043f17
5 changed files with 144 additions and 22 deletions

View File

@@ -5,8 +5,17 @@
// Register a new function. Returns false if a function with the same name already exists
const bool function_register(const std::string name, const uint32_t address);
// Add a parameter to the last registered function
void function_parameter_add(const std::string name, const int type);
// Set the return type of the last searched function
void function_set_type(const uint32_t type);
// Get the return type of the last searched function or -1 if none
const int function_get_type();
// Add a parameter to the last registered function, returns false if there's a parameter already named like that
const bool function_parameter_add(const std::string name, const uint32_t type);
// Check if there's a function with that name
const bool function_exists(const std::string name);
// Retrieve the address of the specified function, or zero if there's no such function