Gimpy 把 Gisp 转换成 Go AST Gimpy

blov • 1367 次点击    
这是一个分享于 的项目,其中的信息可能已经有所发展或是发生改变。
[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 &lt;go-path&gt;/github.com/jcla1/gisp go buildecho $(pwd) &gt;&gt; ~/.bashrc . ~/.bashrc</pre> ## 示例 <pre class="brush:cpp ;toolbar: true; auto-links: false;">(ns main    &#34;github.com/jcla1/gisp/core&#34;     &#34;github.com/eatonphil/gimpy/fmt&#34;     &#34;github.com/eatonphil/gimpy/net/http&#34;) (def hello (fn [w r]     (fmt/Fprintf w &#34;Hello World&#34;)     ())) (def main (fn []     (http/HandleFunc &#34;/&#34; hello)     (http/ListenAndServe &#34;:9090&#34; nil)))</pre>
授权协议:
MIT
开发语言:
Google GoGroovy 查看源码»
操作系统:
Linux
1367 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传