catala/examples/aides_logement
Louis Gesbert 2003566867 Force parens in compound logic formulas
Closes #373

This forbids expressions such as `a and b or c`, avoiding the need to set an
implicit priority between `and`, `or` and `xor`, which I find error-prone.

Instead, when that appears, a message asking for explicit parentheses will be
shown to the user.

Implementation note: since that would be extremely tedious to do in the parser
directly, the parser is set to allow right-associativity without discrimination
for the logical operators, and the check is done during desugaring. This
required to explicit parentheses in the surface AST to discriminate the case
where the priority was explicit.
2023-01-04 10:46:14 +01:00
..
doc Merge branch 'master' into allocations_logement 2022-07-06 16:43:14 +02:00
tests French syntax: replace 'sortie' with 'résultat' 2022-12-13 12:27:33 +01:00
.gitignore feat(build): add the generation of json schemas to the build workflow 2022-07-29 18:47:42 +02:00
aides_logement.catala_fr Turn all existing tests to inline tests 2022-09-23 14:45:10 +02:00
archives.catala_fr Replace the type conversion and rounding operators with overloads 2022-12-13 15:32:49 +01:00
arrete_2019-09-27.catala_fr Refactor the parser to use priorities 2022-12-19 15:12:53 +01:00
autres_sources.catala_fr Replace the type conversion and rounding operators with overloads 2022-12-13 15:32:49 +01:00
code_construction_legislatif.catala_fr Refactor the parser to use priorities 2022-12-19 15:12:53 +01:00
code_construction_reglementaire.catala_fr Force parens in compound logic formulas 2023-01-04 10:46:14 +01:00
code_sécurité_sociale.catala_fr Remove explicitely typed operators in tests and examples 2022-12-13 12:00:04 +01:00
dune Fix relative dir in french_law artifacts ; add a note in examples/README.md 2022-08-04 17:36:50 +02:00
Makefile Merge branch 'master' into allocations_logement 2022-07-06 16:43:14 +02:00
prologue.catala_fr Refactor the parser to use priorities 2022-12-19 15:12:53 +01:00