Gisp 是一个编译器,把 Gisp 转换成 Go AST。Gimpy 是简单的叠加,能更容易从 Gisp 中访问 Go stdlib。主要的,是为了执行类型断言,因为所有 Gisp 的值都是 core.Any (or interface{})。
go get github.com/eatonphil/gimpy cd <go-path>/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)))