暂无描述

Joseph Adams 6382efb764 Merge pull request #3 from kedebug/patch-1 10 年之前
core 3b867174db Added Power digit sum to examples. For that I needed to implement 'get' to index into slices/vectors. 10 年之前
examples 1a589502a0 Updated refrences to core lib. 10 年之前
generator 707a1565dc Now using absolute (not relative) paths in import. Fixes #2. Thanks @rogpeppe! 10 年之前
lexer 7a3e947add Update lexer.go 10 年之前
parser 707a1565dc Now using absolute (not relative) paths in import. Fixes #2. Thanks @rogpeppe! 10 年之前
play 80ffe8e153 Made loop/recur more awesome and added simple asserts 10 年之前
LICENSE 83c6e82d2e Initial commit 11 年之前
README.md ec4af8960d Added more functions 10 年之前
example.gsp 80ffe8e153 Made loop/recur more awesome and added simple asserts 10 年之前
gisp.go 707a1565dc Now using absolute (not relative) paths in import. Fixes #2. Thanks @rogpeppe! 10 年之前

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