4 ms·
Is the OCaml compiler really the same as those others though? I'd say it's more complex than that. It has a very large middle-end that most compilers don't. Thi
by nv-vn 9y ago
Is the OCaml compiler really the same as those others though? I'd say it's more complex than that. It has a very large middle-end that most compilers don't. Things that are pluggable so far:
- Lexing/Parsing (ReasonML)
- Preprocessing (PPX)
- Backend (BuckleScript/js_of_ocaml)
Other parts of the compiler (not as pluggable?):
- Typechecking (which is really what makes it OCaml; TyPpx allows some changes)
- Semantics (can be overridden with PPX somewhat)
- Optimizations/middle passes (things like Flambda)