]> git.lizzy.rs Git - nothing.git/blob - src/ebisp/builtins.h
225f1d8fc51e14a4353b0c970454cc78e2ab2c3d
[nothing.git] / src / ebisp / builtins.h
1 #ifndef BUILTINS_H_
2 #define BUILTINS_H_
3
4 #include "expr.h"
5
6 bool equal(struct Expr obj1, struct Expr obj2);
7
8 bool nil_p(struct Expr obj);
9 bool symbol_p(struct Expr obj);
10 bool string_p(struct Expr obj);
11 bool number_p(struct Expr obj);
12 bool cons_p(struct Expr obj);
13 bool list_p(struct Expr obj);
14 bool list_of_symbols_p(struct Expr obj);
15 bool lambda_p(struct Expr obj);
16
17 bool is_special(const char *name);
18
19 long int length_of_list(struct Expr obj);
20
21 struct Expr assoc(struct Expr key, struct Expr alist);
22
23 struct Expr list(Gc *gc, const char *format, ...);
24
25 struct Expr bool_as_expr(Gc *gc, bool condition);
26
27 #endif  // BUILTINS_H_