Lisp (historically, LISP) is a family of computer programming languages with a long history and a distinctive, fully parenthesized Polish prefix notation. Originally specified in 1958, Lisp is the second-oldest high-level programming language in widespread use today; only Fortran is older (by one year).
TLisp is a simple and dummy C library try to simulate LISP calculation core just for FUN :)
- Create list
struct tlisp_cell *lst = tlisp_list(
tlisp_atom(10), tlisp_atom(20), tlisp_atom(30)
);
- Create con cells
struct tlisp_cell *tlisp_cons(struct tlisp_cell *c1, struct tlisp_cell *c2);
- Create atoms
struct tlisp_cell *tlisp_atom(uint64_t value);
- Reference counting based memory management
void tlisp_free(struct tlisp_cell *c);
void tlisp_chain_free(struct tlisp_cell *c);
If you have time .... fork and code ... :)
GPLv2 :)