Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukad/chao
🍏 This is my toy lisp implementation
https://github.com/lukad/chao
interpreter lisp repl rust
Last synced: 4 days ago
JSON representation
🍏 This is my toy lisp implementation
- Host: GitHub
- URL: https://github.com/lukad/chao
- Owner: lukad
- License: mit
- Created: 2018-08-09T17:47:20.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T20:34:14.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T03:11:18.991Z (13 days ago)
- Topics: interpreter, lisp, repl, rust
- Language: Rust
- Homepage:
- Size: 48.8 KB
- Stars: 17
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chao
A simple lisp.
## Builtins
| Form | Description | Example |
|----------|----------------------------|-----------------------|
| `lambda` | Define anonymous functions | `(lambda (x) (* x x))`|
| `set` | Define variables | `(set 'foo 42)` |
| `if` | Conditional evaluation | `(if true ":D" "D:")` |
| `+-*/` | Artithmetic operators | `(+ 1 (/ 4 2.0))` |
| `=` | Comparison | `(= 1 2)` |## Building
1. [Install rust](https://www.rust-lang.org/en-US/install.html)
2. `git clone https://github.com/lukad/chao.git`
3. `cd chao`
4. `cargo build --release`