Fan: metaprogramming for OCaml

Note

Documentation of Fan is a bit out-of-date, it will be updated recently.

Fan is a compile-time metaprogramming system for OCaml, originally inspired from Camlp4. It’s a combination of OCaml and Lispy Macros. It shares the same concrete syntax with OCaml.

There is an online REPL that user can play with iFan

Status

Fan is still in active development, so it’s expected there would be many bugs. This also means that your participation is particularly important, and your suggestions will affect the design of Fan.

Contributions

Contributions are very welcome

  1. Link to Fan
  2. Link to Fan’s Documentation

It’s written in ReST markup language and powered by Sphinx.