2021-06-25 11:50:49 +03:00
|
|
|
# French Law Libraries
|
|
|
|
|
|
|
|
This folder presents a working example of how Catala could be distributed and
|
|
|
|
deployed inside existing applications. Each sub-folder is specialized for
|
|
|
|
a particular programming language, and features a ready-to-use library of
|
|
|
|
all the French public algorithms coded up using Catala so far.
|
|
|
|
|
2023-07-10 16:45:27 +03:00
|
|
|
Pre-built artifacts for the OCaml, JS and Python backends are available at
|
|
|
|
https://catalalang.github.io/catala/ ; they are automatically updated to follow
|
|
|
|
the latest updates of the development version of Catala (`master` branch).
|
|
|
|
|
2021-06-25 11:50:49 +03:00
|
|
|
## General principles
|
|
|
|
|
|
|
|
Let us say you want to deploy a Catala program inside an application written
|
|
|
|
in programming language X. The Catala compiler will translate the source
|
|
|
|
Catala program into X, yielding a new `.x` source code file. This `.x` file
|
|
|
|
will export functions corresponding to the scopes of the original Catala
|
|
|
|
program. You can then reuse those exported functions in your application written
|
|
|
|
in X.
|
|
|
|
|
|
|
|
## OCaml
|
|
|
|
|
|
|
|
To see how to deploy Catala programs as an OCaml library, see
|
|
|
|
[the dedicated readme](ocaml/README.md).
|
|
|
|
|
|
|
|
## JS
|
|
|
|
|
|
|
|
To see how to deploy Catala programs as a JS library, see
|
|
|
|
[the dedicated readme](js/README.md).
|
|
|
|
|
|
|
|
## Python
|
|
|
|
|
|
|
|
To see how to deploy Catala programs as a Python library, see
|
2021-06-25 16:35:16 +03:00
|
|
|
[the dedicated readme](python/README.md).
|