catala/compiler/desugared
Louis Gesbert 403156b36e Computation and checking of module hashes
This includes a few separate changes:

- pass visibility information of declarations (depending on wether the
  declaration was in a ```catala-metadata block or not)

- add reasonable hash computation functions to discriminate the interfaces. In
  particular:
  * Uids have a `hash` function that depends on their string, but not on their
    actual uid (which is not stable between runs of the compiler) ; the existing
    `hash` function and its uses have been renamed to `id`.
  * The `Hash` module provides the tools to properly combine hashes, etc. While
    we rely on `Hashtbl.hash` for the atoms, we take care not to use it on any
    recursive structure (it relies on a bounded traversal).

- insert the hashes in the artefacts, and properly check and report those (for
  OCaml)

**Remains to do**:

- Record and check the hashes in the other backends

- Provide a way to get stable inline-test outputs in the presence of module
  hashes

- Provide a way to write external modules that don't break at every Catala
  update.
2024-05-28 11:43:50 +02:00
..
ast.ml Computation and checking of module hashes 2024-05-28 11:43:50 +02:00
ast.mli Computation and checking of module hashes 2024-05-28 11:43:50 +02:00
dependency.ml Computation and checking of module hashes 2024-05-28 11:43:50 +02:00
dependency.mli Output scopes and subscope variable rework done 2024-04-04 10:24:18 +02:00
desugared.mld Fix most doc errors 2023-06-02 17:17:45 +02:00
disambiguate.ml Computation and checking of module hashes 2024-05-28 11:43:50 +02:00
disambiguate.mli AST change: more specific application 2023-12-19 17:27:40 +01:00
dune Rename utils to catala_utils 2022-11-28 16:38:09 +01:00
from_surface.ml Computation and checking of module hashes 2024-05-28 11:43:50 +02:00
from_surface.mli Uniform naming of conversion modules across compilation passes 2022-11-22 12:08:18 +01:00
linting.ml Improve message formatting throughout 2024-04-12 17:07:36 +02:00
linting.mli Update error messages 2023-03-31 14:01:04 +02:00
name_resolution.ml Computation and checking of module hashes 2024-05-28 11:43:50 +02:00
name_resolution.mli Computation and checking of module hashes 2024-05-28 11:43:50 +02:00
print.ml Message formatting: final touches 2024-05-03 15:14:51 +02:00
print.mli Refactoring changes after @altgr's suggestions 2023-04-18 10:31:44 +02:00