Some programs that have great value for me (maybe not for you). Sometimes they can be a bit messy, so I will occasionally do some detective work on them and update!
- Transforming a program into CPS.
- Transforming a program into A-Normal Form.
- A simple CPStyle evaluator for a subset of Scheme.
- A interpreter of a petite language with explicit references.
- A simple C-style interpreter of λ-Calculus with some primitives.
- interpreter -> CPSed -> registerized -> trampolined.
- Untyped λ-Calculus (standard reduction) written in
#lang typed/racket
. - Call-By-Name with old fashion substitution.
- A naive implementation of CC Machine described in PLLC.
- One of the most interesting compiler pass from P523.
- Simple implementation of Normalization by Evaluation.
- Similar to Olivier Danvy's Type Directed Partial Evaluation.
Some tutorial notes you may find interesting:
- From an Interpreter to a CPSer.
- How to derive Y combinator?