StrongerXi / soc

Compiler for a subset of OCaml
1 stars 0 forks source link

SOC

A Subset of OCaml Compiler.

The end goal is to compile all the OCaml portion of the codebase (excluding some primitive functions, which will be written as part of the runtime in C).

Why

From my experience, most students can build a compiler for some small language, sometimes with type-checking, classes, lambdas, or even a rudimentary runtime.

However, there still exists a huge gap between such "toy compilers" and production compiler, such as OCaml's.

I think a self-compiling compiler would help bridge that gap, and significantly help one understand a language.

As to why OCaml? I just love this language:).