hawkw / seax

A VM-based runtime environment for functional programming languages
http://hawkweisman.me/seax/
MIT License
45 stars 5 forks source link

Implement code generation for `let` bindings. #54

Closed hawkw closed 9 years ago

hawkw commented 9 years ago

Once Seax Scheme compiles code with let bindings and some basic control flow (#53), I'll feel comfortable releasing Scheme dev preview v0.2.0.

hawkw commented 9 years ago

This shouldn't be hard now that it handles lambda expressions (#65); in the SECD machine, a let is basically just a boring lambda that doesn't return anything.

Lambda, the ultimate variable binding.

hawkw commented 9 years ago

Commits 146cac5af73d1241bd99d3b2e8d210354833761a, 42e78e1400d58b71eb879232fe0763fc50a6d880, cee042011f662609b653eb752ec951a99b439ac6 and 3c6e805be8ef2b19bbcc4f4917611b4c8fc859e4 add pretty exhaustive tests for this. Should be merge-ready.