[Gisp](https://github.com/jcla1/gisp) 是一个编译器,把 Gisp 转换成 Go AST。Gimpy 是简单的叠加,能更容易从 Gisp 中访问 Go stdlib。主要的,是为了执行类型断言,因为所有 Gisp 的值都是 core.Any (or interface{})。
## 安装
<pre class="brush:shell;toolbar: true; auto-links: false;">go get github.com/eatonphil/gimpy
cd <go-path>/github.com/jcla1/gisp
go buildecho $(pwd) >> ~/.bashrc
. ~/.bashrc</pre>
## 示例
<pre class="brush:cpp ;toolbar: true; auto-links: false;">(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)))</pre>
- 授权协议:
- MIT
- 开发语言:
- Google GoGroovy 查看源码»
- 操作系统:
- Linux