chao
chao copied to clipboard
🍏 This is my toy lisp implementation
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