项目
在 GitHub 查看
jcla1/gisp
关于
使用 Go 实现的简单 LISP
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文gisp
Simple (non standard) compiler of Lisp/Scheme to Go.
Includes
- Lexer based on Rob Pike's Lexical Scanning in Go
- Simple recursive parser, supporting ints, floats, strings, bools
- TCO via loop/recur
- AST generating REPL included
Build and Run
> go build && ./gisp
>>
From here you can type in forms and you'll get the Go AST back. To compile a file:
> ./gisp filename.gsp
Functions
+, -, *, mod, let, if, ns, def, fn, all pre-existing Go functions
See examples for some Project Euler solutions
License
MIT
探索相关项目
加载中…