This commit is contained in:
Arthur Barraux
2025-06-12 17:00:19 +02:00
parent 04464ec2e7
commit 5818a8ecfc
14 changed files with 977 additions and 232 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef FUNCTION_H_
#define FUNCTION_H_
#include "data.h"
int register_builtin_function(const char *name, int (*handler)(node_t **, int),
bool eval_args);
int register_user_function(const char *name, char **parameters, int param_count,
node_t *body);
int register_registry_function(const char *name, command_func_t func);
int register_function(const char *name, command_func_t func);
unified_function_t *find_unified_function(const char *name);
node_t *execute_unified_function(exec_context_t *ctx, const char *name,
node_t **args, int arg_count);
command_func_t find_function(const char *name);
int execute_command(const char *name);
node_t *execute_function_call_in_context(exec_context_t *ctx, node_t *call);
#endif