ortac
has a plugin architecture in order to add new ways to use the gospel
to OCaml translation. Basically, a plugin brings a new subcommand to the
ortac
command line interface.
In order to let the user easily write a plugin:
ortac.ortac_core
is provided as a library for translatinggospel
terms into OCaml expressionsortac.register
library exposes theRegistration
module that contains:- a function
register
to let the writer registers the plugin. - some utility functions to help the writer wrapping what is done with the
translation into a
unit Cmdliner.Cmd.t
.
- a function