diff options
| author | Mistivia <i@mistivia.com> | 2025-06-18 20:55:54 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-18 20:55:54 +0800 |
| commit | 0b335dc24e76cace44e748e62d5cbbc40c4355f5 (patch) | |
| tree | 5fa2ef69b88908a8ddb6c78624919d967fcba875 /src/bamboo.h | |
| parent | 6f1cfbda4a519ad8a232d126539a2732ab43c671 (diff) | |
finish parser
Diffstat (limited to 'src/bamboo.h')
| -rw-r--r-- | src/bamboo.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/bamboo.h b/src/bamboo.h deleted file mode 100644 index a424be6..0000000 --- a/src/bamboo.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef BAMBOO_LISP_BAMBOO_H_ -#define BAMBOO_LISP_BAMBOO_H_ - -#include <algds/hash_table.h> - -#include "sexp.h" - -typedef struct { - SExpVector objs; - String2IntHashTable symbols; -} Bamboo; - -void Bamboo_init(Bamboo *self); -SExp* Bamboo_ref(Bamboo *self, SExpRef ref); -// TODO: Heap_gc() - -SExpRef new_integer(Bamboo *ctx, int64_t val); -SExpRef new_real(Bamboo *ctx, double val); -SExpRef new_string(Bamboo *ctx, const char *val); -SExpRef new_symbol(Bamboo *ctx, const char *val); -SExpRef cons(Bamboo *ctx, SExpRef car, SExpRef cdr); -SExpRef nil(Bamboo *ctx); -SExpRef new_list1(Bamboo *ctx, SExpRef e1); -SExpRef new_list2(Bamboo *ctx, SExpRef e1, SExpRef e2); -SExpRef new_list3(Bamboo *ctx, SExpRef e1, SExpRef e2, SExpRef e3); -SExpRef new_list4(Bamboo *ctx, SExpRef e1, SExpRef e2, SExpRef e3, SExpRef e4); -SExpRef new_list5(Bamboo *ctx, SExpRef e1, SExpRef e2, SExpRef e3, SExpRef e4, SExpRef e5); -SExpRef new_list6(Bamboo *ctx, SExpRef e1, SExpRef e2, SExpRef e3, SExpRef e4, SExpRef e5, SExpRef e6); -SExpRef new_list7(Bamboo *ctx, SExpRef e1, SExpRef e2, SExpRef e3, SExpRef e4, SExpRef e5, SExpRef e6, SExpRef e7); - -#endif - |
