项目作者: d-tsuji

项目描述 :
Fork repository. Mini lisp interpreter written in Java.
高级语言: Java
项目地址: git://github.com/d-tsuji/SDLisp.git
创建时间: 2020-05-18T00:00:54Z
项目社区:https://github.com/d-tsuji/SDLisp

开源协议:Creative Commons Zero v1.0 Universal

下载


SDLisp

Mini lisp interpreter written in Java. The source repository url is omitted in the README because it seems to be written only in the book.

An explanation can be found in the following books.

https://gihyo.jp/magazine/SD/archive/2017/201709

SDLisp is written in about 500 lines. It is simple and cool.

  1. $ gocloc src
  2. -------------------------------------------------------------------------------
  3. Language files blank comment code
  4. -------------------------------------------------------------------------------
  5. Java 12 72 92 497
  6. -------------------------------------------------------------------------------
  7. TOTAL 12 72 92 497
  8. -------------------------------------------------------------------------------

Some examples

  1. > (+ 1 2)
  2. 3
  1. > (cons 1 '(2 3))
  2. (1 2 3)
  1. > (defun fact (n) (if (< n 1) 1 (* n (fact (- n 1)))))
  2. FACT
  3. > (fact 10)
  4. 3628800

LICENSE

These codes are licensed under CC0.

CC0