/inc

an incremental approach to compiler construction

Primary LanguageSchemeMIT LicenseMIT

Step-by-step development of a Scheme-to-x86 compiler, based on Abdulaziz Ghuloum's paper, An Incremental Approach to Compiler Construction, and extended draft tutorial, Compilers: Backend to Frontend and Back to Front Again.

The CPS conversion is based on Matt Might's web article, How to compile with continuations.

More on inc

See the src directory.

Docker cheatsheet

  • docker build -t=namin/inc .
  • docker run -i -t namin/inc /bin/bash
  • docker run -it -v $(pwd):/inc-live namin/inc /bin/bash