1 unstable release
Uses old Rust 2015
0.1.0 | Aug 10, 2018 |
---|
#87 in #lisp
19KB
505 lines
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
- Install rust
git clone https://github.com/lukad/chao.git
cd chao
cargo build --release
Dependencies
~5–12MB
~134K SLoC