slag-plt / scamper

A mini-Scheme implementation designed for teaching, targeting the web
0 stars 1 forks source link

Redesign Scamper's internal AST/IL representations #66

Closed psosera closed 1 year ago

psosera commented 1 year ago

Related problems: the AST for Scamper and its "bytecode" IL are a bit hacky and could use some clean-up. In particular, we can likely move the AST to a simpler form more evocative of the true Scheme, homoiconic "code-as-data" style. The IL dually needs a revamp to remove some of the hacky warts thrown in there at the moment to facilitate efficient evaluation and raising back to source code.

psosera commented 1 year ago

Successfully refactored internal ASTs to pave the way for macros. I didn't touch the IL representation but will do so as part of the interactivity enhancements in #65 .