Skip to content

SomewhatML/sml-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

199e4c8 · Oct 25, 2020
Jun 26, 2020
Jun 7, 2020
Oct 25, 2020
Oct 25, 2020
Jun 7, 2020
Jun 28, 2020
Jun 7, 2020
Aug 7, 2020
Jun 7, 2020
Aug 6, 2020
Aug 3, 2020
Oct 25, 2020
Jun 14, 2020

Repository files navigation

sml-compiler

A tutorial implementation of a compiler for a modified dialect (no module system) of Standard ML. I do not make any guarantees about the correctness of the compiler (although obviously I prefer it to be correct), as this is mostly meant as an educational exercise.

We take an approach similar to MLton, where we will be performing whole-program compilation and monomorphization

Roadmap

  • Parser
  • Syntax checking
  • Elaboration and type reconstruction
  • Match compilation
  • Monomorphization
  • SSA transformation
  • Optimization passes
  • Native code generation