Gisp 是一个编译器,把 Gisp 转换成 Go AST。Gimpy 是简单的叠加,能更容易从 Gisp 中访问 Go stdlib。主要的,是为了执行类型断言,因为所有 Gisp 的值都是 core.Any (or interfACE{})。
go get Github.com/eatonphil/gimpy
cd /github.com/jcla1/gisp
go buildEcho $(pwd) >> ~/.Bashrc
. ~/.bashrc
(ns main "github.com/jcla1/gisp/core"
"github.com/eatonphil/gimpy/fMT"
"github.com/eatonphil/gimpy/net/HTTP")
(def hello (fn [w r]
(fmt/Fprintf w "Hello World")
()))
(def main (fn []
(http/HandleFunc "/" hello)
(http/ListenAndServe ":9090" Nil)))