Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktravis/sigmo
Lisp in Go
https://github.com/ktravis/sigmo
Last synced: about 2 months ago
JSON representation
Lisp in Go
- Host: GitHub
- URL: https://github.com/ktravis/sigmo
- Owner: ktravis
- License: mit
- Created: 2015-10-18T19:24:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-14T13:24:20.000Z (about 8 years ago)
- Last Synced: 2024-06-20T13:28:27.532Z (7 months ago)
- Language: Go
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
sigmo
=====An interpreted lisp, written in Go.
All of the basic lisp features you would expected, and a few extra:
- namespaces `(namespace test ...)`
- importing files `(import core/math)`
- `for` loop construct
- errors and "guards" (think try/except) `(guard (error "help"))`
- "real" macros
- hashmap values `{ "a" 1 }`
- value expansions `(mylist...)`
- type hints for functions `(defn onlyints (a#int) (println 'a was an int'))`See [examples](./examples/) for more!
install
#######On linux: (requires package `libreadline-dev`)
```bash
go get github.com/ktravis/sigmo
```build
#####```bash
go build ./cmd/sigmo
```run
###```bash
./sigmo # cli
./sigmo test.mo # run a file
./sigmo -c '(print "hi")' # run a single command
./sigmo -i test.mo # run a file, drop into cli with context
```