A chaotic lisp compiler in Clojure.
Very basic. You can use the run
function to evaluate code.
(run "(define r 10) (* pi (* r r))")
-
Change eval such that it's easier to add new functionality without bloating up the function. Ideally in a data directed style (like in SICP).
-
Add more basic functions in the global environment.
-
In case of procedure call, create, and execute in, a new environment.
MIT