~eskin/hare-lisp

A small lisp

0db7142 add gensym

~eskin pushed to ~eskin/hare-lisp git

1 year, 11 months ago

11b3962 add div, mult, lt, gt

~eskin pushed to ~eskin/hare-lisp git

1 year, 11 months ago

#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