catala/french_law
2023-06-13 11:50:56 +02:00
..
catala_legifrance Messages renamed to Message (lighter syntax) 2023-06-13 11:50:56 +02:00
js Update assets 2023-06-03 18:09:32 +02:00
ocaml Correctly setup ocolor on all output channels 2023-06-08 12:14:11 +02:00
python Implement the rest 2023-05-26 16:54:52 +02:00
README.md feat(runtime): clean parse_raw_events + add documentation 2022-06-16 11:39:37 +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.