Add 'list' and 'print' builtins

This commit is contained in:
2022-11-02 21:26:52 -04:00
parent 3b7bef779b
commit 2cf4cd9587
6 changed files with 83 additions and 15 deletions

View File

@@ -10,6 +10,10 @@
#include <string.h>
struct ucl_object *ucl_evaluate_list(struct ucl_state *state, struct ucl_object *list) {
if (list->cell.car == NULL) {
return list;
}
// TODO: Recursively eval args
struct ucl_object *evaluated_list = ucl_nil_create();