Add printl, car, cdr builtins

This commit is contained in:
2022-11-04 22:22:08 -04:00
parent 2527c34ddf
commit a5ef5c9fa0
3 changed files with 13 additions and 3 deletions

View File

@@ -160,6 +160,13 @@ LISP_FUNC_1(ucl_builtin_print, state, arg0) {
return ucl_nil_create();
}
LISP_FUNC_1(ucl_builtin_printl, state, arg0) {
ucl_print_obj(arg0);
printf("\n");
return ucl_nil_create();
}
struct ucl_object *ucl_builtin_list(struct ucl_state *state, struct ucl_object *args) {
struct ucl_object *head = ucl_nil_create();
FOREACH_LIST(args, iter, item) {