catala/french_law
Louis Gesbert 551c9a6729 Allocation_logement: fix parentheses in formula
Changing the priorities broke the expression!

Here it was caught by the types; I hope there aren't other places where
it just changed the output without being caught by our tests...
2022-05-18 16:47:46 +02:00
..
js Allocation_logement: fix parentheses in formula 2022-05-18 16:47:46 +02:00
ocaml Formatting: sync with master 2022-05-12 15:10:55 +02:00
python Merge branch 'master' into allocations_logement 2022-05-08 15:20:04 +02:00
dune Big renaming and dir reorg 2021-06-21 11:39:06 +02:00
README.md Typo in README 2021-06-25 15:35:16 +02: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.

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.

JS

To see how to deploy Catala programs as a JS library, see the dedicated readme.

Python

To see how to deploy Catala programs as a Python library, see the dedicated readme.