CatalaLang / catala

Programming language for literate programming law specification
https://catala-lang.org
Apache License 2.0
1.97k stars 78 forks source link

Whole program compilation #678

Open denismerigoux opened 3 weeks ago

denismerigoux commented 3 weeks ago

Right now, the interpreter only interprets the top-level module, loading dependent modules as pre-compiled OCaml libraries. But for certain applications (like concolic testing or the explanation plugin), we need to access the source code of all dependent modules as well. The Catala compiler should thus have an option for whole-program compilation that fetches the source Catala files of all dependent modules.