catala/compiler/plugins
Louis Gesbert 2823795f9f AST change: more specific application
As part of making tuples first-class citizens, expliciting the arity upon
function application was needed (so that a function of two args can
transparently -- in the surface language -- be applied to either two arguments
or a pair).

It was decided to actually explicit the whole type of arguments because the cost
is the same, and this is consistent with lambda definitions.

A related change done here is the replacement of the `EOp` node for operators by
an "operator application" `EAppOp` node, enforcing a pervasive invariant that
operators are always directly applied. This makes matches terser, and highlights
the fact that the treatment of operator application is almost always different
from function application in practice.
2023-12-19 17:27:40 +01:00
..
api_web.ml Allow scope execution in compiled ocaml executables 2023-12-06 11:06:54 +01:00
dune Rework module includes CLI in Catala 2023-09-27 13:14:40 +02:00
explain.ml AST change: more specific application 2023-12-19 17:27:40 +01:00
json_schema.ml Rework resolution of module elements 2023-11-30 21:14:12 +01:00
lazy_interp.ml AST change: more specific application 2023-12-19 17:27:40 +01:00
plugins.mld Remove generated files from git 2023-07-10 15:48:11 +02:00
python.ml Rework resolution of module elements 2023-11-30 21:14:12 +01:00
README.md Documentation about plugins 2022-08-09 15:00:13 +02:00

Catala compiler plugins

You want to add a customized backend for the Catala compiler but don't want to modify its source code? Thanks to dynamic linking, it is possible to do so. The advantage of creating a customized backend is the possibility to craft a generated target code that perfectly matches the naming conventions, module structure or coding style of your application.

See the online documentation for more details on how to create them, or look at the existing plugins in this directory for inspiration.