Commit Graph

3527 Commits

Author SHA1 Message Date
Denis Merigoux
38782fa546
Correct fix 2023-09-22 18:02:44 +02:00
Denis Merigoux
6356a3c7f8
Fix linebreaking in LaTeX Catala code (#520) 2023-09-22 17:16:48 +02:00
Denis Merigoux
9c83943f2b
Revert "Break lines in code Latex output"
This reverts commit 7971cb7651.
2023-09-21 13:58:26 +02:00
Denis Merigoux
5eba0b6562
Trying 2023-09-21 13:57:54 +02:00
Denis Merigoux
7971cb7651
Break lines in code Latex output 2023-09-21 13:30:30 +02:00
Denis Merigoux
f9768c1813
Optim: avoid extra translations in the interpreter (#519) 2023-09-20 17:34:35 +02:00
Louis Gesbert
c63d74647d Optim: avoid extra translations in the interpreter
A recent patch introduced custom terms in expressions manipulated by the
interpreter. For typing reasons, a traversal is done to extend the supplied
expression with these custom terms — it's functionally the identity, but, due to
the fact that the type-checker can't infer covariance of our AST terms on their
phantom parameter, playing by the rules imposes a full traversal + rebuild.

Without resorting to a (constrained) `Obj.magic`, this patch avoids extra
intermediate conversions, which is enough to cut out the huge extra cost we were
incurring.

Closes #516
2023-09-19 18:22:43 +02:00
Denis Merigoux
a908b2a45c
Mise à jour du calcul des aides au logement avec la réforme des retraites (#515) 2023-09-19 13:58:23 +02:00
Denis Merigoux
da50115acf
Fixes OCaml error not caught in JS (#511) 2023-09-19 13:47:51 +02:00
Denis Merigoux
524c8b1274
Commentaire précis 2023-09-19 13:44:01 +02:00
Denis Merigoux
43a1e30c33
Update old image on main README (fixes #514) 2023-09-19 13:29:14 +02:00
Denis Merigoux
f57127c0aa
Fix anteriority bug 2023-09-19 12:07:02 +02:00
Denis Merigoux
029c555dc6
Mise à jour du calcul des aides au logement avec la réforme des retraites (#506) 2023-09-19 11:56:57 +02:00
armandsalek
ff3060fa04
implémenter calcul de âge_l351_1_5_sécu qui a remplacé âge_l161_17_2_sécu dans le code actuel 2023-09-19 11:55:47 +02:00
Denis Merigoux
a6e15eb150
Mise à jour CCH reglementaire au 2023-09-01
Manque des implémentations de la réforme des retraites
2023-09-19 11:55:31 +02:00
Denis Merigoux
b432bdd700
Extra .gitignore after make all 2023-09-15 10:34:42 +02:00
Denis Merigoux
af1fbe884c
Encapsulate by default all Web API calls with execute_or_throw_error 2023-09-15 10:29:31 +02:00
Louis Gesbert
3cc77f4601
Improvements to the Polish translation (#499) 2023-09-13 16:19:06 +02:00
Louis Gesbert
a89a95ef6a
Remove catala_legifrance (#509) 2023-09-13 16:17:32 +02:00
Denis Merigoux
efd175a390 Remove from scripts 2023-09-13 16:16:48 +02:00
Denis Merigoux
fc9e7330ce Remove catala_legifrance 2023-09-13 16:16:46 +02:00
Louis Gesbert
02521092d0
replace let _ by let () or add type annotation (#507) 2023-09-13 16:15:49 +02:00
Louis Gesbert
0a1524352b
Temporarily disable unstable test (#510) 2023-09-13 14:46:45 +02:00
Louis Gesbert
fe06f9d55c Temporarily disable unstable test
The mod_use test requires prior compilation of the module which the build system
doesn't guarantee. This will be fixed with the new Clerk version that handles
dependencies transparently, disabled until then to avoid spurious failures..
2023-09-13 14:23:31 +02:00
Denis Merigoux
c1d4592998 Correct MR_* fields for characters with accents 2023-09-13 14:14:47 +02:00
Louis Gesbert
9505e42565
add missing french_law/python/src/runtime.py to .gitignore (#505) 2023-09-11 14:17:56 +02:00
zapashcanon
97e5b15531
replace let _ by let () or add type annotation 2023-09-09 22:02:39 +02:00
zapashcanon
d1f1686594
add missing french_law/python/src/runtime.py to .gitignore 2023-09-09 21:11:38 +02:00
Louis Gesbert
4c6fff9d99
bugfix: address breaking change in markdown-mode v2.6 (#503) 2023-09-06 16:04:04 +02:00
Suhail Singh
b7216c9584 bugfix: address breaking change in markdown-mode v2.6 2023-09-05 23:11:19 -04:00
Louis Gesbert
7d9f1bbc11
Improvements to searching for libs at runtime (plugins, runtime, etc.) (#502) 2023-09-05 11:24:37 +02:00
Louis Gesbert
9a596a48f7 Improvements to searching for libs at runtime (plugins, runtime, etc.) 2023-09-04 09:57:49 +02:00
Louis Gesbert
1dd06a2e4e
Define ANSI style at Uid level, update ocamlformat (#501) 2023-09-01 16:39:36 +02:00
Louis Gesbert
1d0b0f79cc Update reformatting commits list 2023-09-01 16:26:04 +02:00
Louis Gesbert
4910158aea Reformat 2023-09-01 16:24:27 +02:00
Louis Gesbert
15e0339800 Update ocamlformat
Apparently this time it has no incidence on our code.
2023-09-01 16:19:58 +02:00
Louis Gesbert
fe2c66af12 Select colors for Uids upon instanciation
This way different Uid kinds will have a consistent color across error messages,
AST dumps, etc.
2023-09-01 14:41:56 +02:00
Louis Gesbert
dcb057bc6f
Module support: handle structs, enums and scope calls across modules (#497) 2023-09-01 14:35:58 +02:00
Louis Gesbert
4e9f738381 CI: fix docker image name escaping 2023-08-31 18:31:48 +02:00
Louis Gesbert
ce97b55c27 Update tests 2023-08-31 18:31:48 +02:00
Louis Gesbert
544e18e110 Fixes related to environments and lookups 2023-08-31 18:31:48 +02:00
Louis Gesbert
8278bb8c5d Make the passes appear more clearly in the driver debug 2023-08-31 18:31:48 +02:00
Louis Gesbert
ff60aee5ef Improve module error messages 2023-08-31 18:31:48 +02:00
Louis Gesbert
e75ea3da07 Cleanup tmp debug code 2023-08-31 18:31:48 +02:00
Louis Gesbert
8e33355ead Reformat 2023-08-31 18:31:48 +02:00
Louis Gesbert
6bccd89482 Fix OCaml backend for cross-module refs 2023-08-31 18:31:48 +02:00
Louis Gesbert
7db63e5f78 Simplification: store paths in Uids
rather than scattered in structures

The context is still hierarchical for defs though, so one needs to retrieve the
path to lookup in the correct context for info. Exceptions are enums and struct
defs, which are re-exposed at toplevel.
2023-08-31 18:31:48 +02:00
Louis Gesbert
b5baa91a2e Add (half-baked) test on module usage
Half-baked because clerk doesn't know to order the tests properly at the moment,
and we spit compiled files into the source test directory.
2023-08-31 18:31:48 +02:00
Louis Gesbert
a71b4e7f73 Some fixes to relative file lookups in modules and tests
This makes sure `catala module` finds the local runtime when run from the catala
source tree; and fixes lookup of the catala exec on custom uses of `clerk runtest`.
2023-08-31 17:55:36 +02:00
Louis Gesbert
17172cf47d Some fixes & cleanup after early review 2023-08-31 17:55:36 +02:00