Gimpy 把 Gisp 转换成 Go AST Gimpy

blov2016-09-07 16:07:39 • 1747 次点击    
这是一个分享于 2016-09-07 16:07:39 的项目,其中的信息可能已经有所发展或是发生改变。

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)))
Latest commit to the undefined branch on unknown
Download as zip
授权协议:
MIT
开发语言:
Google GoGroovy 查看源码»
操作系统:
Linux
1747 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传