Skip to content
Dhruv Makwana edited this page Feb 7, 2017 · 2 revisions

.ml

These are OCaml source files, typically containing implementations. If a function is in the .mli file then it must be in the .ml file.

.mli

These are OCaml interface files. If I want to create a module called Category the signature would be contained in the file category.mli and the implementation in the file category.ml.

.mll

These are lexer files for tokenising a .ml or .mli file.

.mly

These are ocamlyacc or Menhir files for specifying a grammar for which to generate a parser.

.ml4*

These are non-standard ways of extending syntax. A more recent development, ppx can be used for syntax extensions now.

Clone this wiki locally