From c9cbeced5b3f2bdd7407e29c0811e65954132540 Mon Sep 17 00:00:00 2001 From: Root THC Date: Tue, 24 Feb 2026 12:42:47 +0000 Subject: initial --- other/burneye/src/conf/tmp/script.h | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 other/burneye/src/conf/tmp/script.h (limited to 'other/burneye/src/conf/tmp/script.h') diff --git a/other/burneye/src/conf/tmp/script.h b/other/burneye/src/conf/tmp/script.h new file mode 100644 index 0000000..7235218 --- /dev/null +++ b/other/burneye/src/conf/tmp/script.h @@ -0,0 +1,50 @@ +/* fornax - distributed network + * + * by team teso + * + * scripting capabilities + */ + +#ifndef FNX_SCRIPT_H +#define FNX_SCRIPT_H + +#include "element.h" +#include "symbol.h" + + +/* scr_exec + * + * compile and execute a script pointed to by `script'. after execution, + * free the compiled script + * + * return 1 if the execution was successful (ie compilation succeeded) + * return 0 on error (compilation/interpreter failed) + */ + +int scr_exec (char *script); + + +/* scr_ns_add + * + * add a symbol element `elem' to the namespace pointed to by `ns' + * + * return pointer to modified namespace + */ + +sym_elem ** scr_ns_add (sym_elem **ns, sym_elem *elem); + + +/* scr_compile + * + * compile a script pointed to by `script' + * + * return a pointer to the readily compiled parse tree on success + * return NULL on failure + */ + +element ** scr_compile (char *script); + + +#endif + + -- cgit v1.3