Source code

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.