Refactor to encapsulate all state in a 'ucl'

This commit is contained in:
2022-11-22 15:50:46 -05:00
parent 13062a5b86
commit 5320c70dea
23 changed files with 641 additions and 663 deletions

View File

@@ -3,12 +3,15 @@
struct ucl_scope;
struct ucl_object;
struct ucl;
struct ucl_object *ucl_tokenize(const char *source);
struct ucl_object *ucl_parse(const char *sexp);
struct ucl_object *ucl_evaluate(struct ucl_scope *state, struct ucl_object *sexp);
struct ucl* ucl_create(void);
void ucl_delete(struct ucl* state);
// TODO: State encapsulation is all wonky here)
void ucl_gc();
struct ucl_object *ucl_tokenize(struct ucl* state, const char *source);
struct ucl_object *ucl_parse(struct ucl* state, const char *sexp);
struct ucl_object *ucl_evaluate(struct ucl* state, struct ucl_object *sexp);
void ucl_gc(struct ucl* ucl);
#endif