~eskin/hare-lisp

A small lisp
add gensym
add div, mult, lt, gt
initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~eskin/hare-lisp
read/write
git@git.sr.ht:~eskin/hare-lisp

#WIP lisp written in Hare (for fun)

  • [x] cons
  • [x] car
  • [x] cdr
  • [x] quote
  • [x] define
  • [x] +
  • [x] -
  • [x] *
  • [x] /
  • [x] >
  • [x] <
  • [x] lambda
  • [x] list
  • [x] setq
  • [x] macroexpand
  • [x] if
  • [x] =
  • [x] defmacro
  • [x] defun
  • [x] gensym
  • [ ] garbage collection
  • [ ] rational numbers

#Usage

[solaire@Hyperion hare-lisp]$ hare run lisp.ha > (cons 1 2) (1 . 2) > (define x (lambda (y) (+ 2 y))) Function > (x 7) 9