64

GitHub - codr7/g-fu: a Lisp to Go

 4 years ago
source link: https://github.com/codr7/g-fu
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Logo

Intro

g-fu is a pragmatic Lisp developed and embedded in Go.

$ git clone https://github.com/codr7/g-fu.git
$ cd g-fu/v1
$ go build src/gfu.go
$ rlwrap ./gfu
g-fu v1.15

Press Return twice to evaluate.

  (fun fib (n)
    (if (< n 2)
      n
      (+ (fib (- n 1)) (fib (- n 2)))))
  (fib 20)

6765

Status

The initial release is more or less ready for action. Once it stabilizes; work begins on v2, which will focus on compilation to an internal representation optimized for evaluation.

License

LGPL3


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK