Trebek is a dialect of Lisp, with support for dictionaries, strings and closures. The interpreter is written in Rust.
- Garbage Collected
- Lexical Scopes
- Closures
- Macros
- Literals expressions (String, List, Dictionary)
>>> (+ 1 2)
3
>>> (let (person {:name "john" :age 32})
... (print (person :age)))
32
>>> (defn greet (name)
... (print "Hello " name))
>>> (greet "john!")
"Hello john!"
>>> (for name ["john", "doe"]
... (greet name))
"Hello john!"
"Hello doe!"
Copyright © 2021 Shadman Shadab.
All code is licensed under the MIT. See LICENSE file for details.