diff options
| author | Mistivia <i@mistivia.com> | 2025-06-20 14:17:23 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-20 14:17:23 +0800 |
| commit | f09b34f95134972ecb907dbef0a697f4fcc1abaf (patch) | |
| tree | 1bf08c50ab18ad3f82912c14afa26892b5fbc293 /src/builtins.h | |
| parent | 0f01f6959c4880d8c85d195ed051f4114c8e9b14 (diff) | |
refactor; while
Diffstat (limited to 'src/builtins.h')
| -rw-r--r-- | src/builtins.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/builtins.h b/src/builtins.h new file mode 100644 index 0000000..125a042 --- /dev/null +++ b/src/builtins.h @@ -0,0 +1,20 @@ +#ifndef BAMBOO_LISP_BUILTINS_H_ +#define BAMBOO_LISP_BUILTINS_H_ + +#include "interp.h" + +SExpRef builtin_list(Interp *interp, SExpRef sexp); +SExpRef builtin_car(Interp *interp, SExpRef sexp); +SExpRef builtin_cdr(Interp *interp, SExpRef sexp); +SExpRef builtin_cons(Interp *interp, SExpRef sexp); + +SExpRef builtin_add(Interp *interp, SExpRef sexp); +SExpRef builtin_sub(Interp *interp, SExpRef sexp); + +SExpRef builtin_num_equal(Interp *interp, SExpRef sexp); +SExpRef builtin_gt(Interp *interp, SExpRef sexp); +SExpRef builtin_lt(Interp *interp, SExpRef sexp); +SExpRef builtin_ge(Interp *interp, SExpRef sexp); +SExpRef builtin_le(Interp *interp, SExpRef sexp); + +#endif |
