Commit Graph

3318 Commits

Author SHA1 Message Date
adelaett
72f6ac9f58 append lcalc to driver 2023-04-05 15:42:26 +02:00
adelaett
256c0625ff forward -> propagate 2023-04-05 14:57:02 +02:00
Louis Gesbert
0098f00512 Yet some more small improvements to the AST encoding 2023-04-05 10:32:58 +02:00
Louis Gesbert
0c1cd481e1 Interpreter on dcalc + lcalc (the simple way)
I made some changes in the meantime, and had to factorise e.g. the handling of
the `EEmptyError` case, but this is the simple approach type-wise of making the
function type for `∀ 'a. 'a —> 'a` (with `assert false` match cases), then
restricting its type do `dcalc` or `lcalc` in the `.mli`.
2023-04-05 10:32:58 +02:00
Louis Gesbert
79ff776d2e Multi-pass interperter: typing (but useless) version 2023-04-05 10:32:58 +02:00
adelaett
503cd6b1e5 implementation of the behavior 2023-04-05 10:32:52 +02:00
adelaett
06147ac5b6 typing working in the file, but does not accept
Lcalc for some reason
2023-04-05 10:32:52 +02:00
adelaett
68e0f0a0ee changing position of the interpreter 2023-04-05 10:32:52 +02:00
Denis Merigoux
3361612965
Overseas rules for French housing benefits (#385) 2023-04-05 09:54:21 +02:00
Denis Merigoux
1ee8d3923b
Restore Python API 2023-04-04 17:37:41 +02:00
Denis Merigoux
d63958d7da
Merge branch 'master' into aides_logement_outre_mer 2023-04-04 17:21:28 +02:00
Denis Merigoux
ba44949bea
Pin js_of_ocaml version : see https://github.com/CatalaLang/catala/issues/442 2023-04-04 17:13:00 +02:00
adelaett
82992e9858 documentation 2023-04-04 17:02:26 +02:00
Denis Merigoux
4b4034e2ff
Removed spurious dependency? 2023-04-04 16:39:40 +02:00
Alex
57e3501220
Add ocaml-crunch to build deps 2023-04-04 16:05:35 +02:00
Louis Gesbert
996ee1ea13
CI: Update OCaml base image
Available tags can be seen at https://hub.docker.com/r/ocamlpro/ocaml/tags?page=1&ordering=last_updated
2023-04-04 16:01:14 +02:00
adelaett
066388ddfd fix of_lcalc special handling of handle_opt variables 2023-04-04 15:58:05 +02:00
adelaett
60f8c229d5 fix to_ocaml new handledefault and handledefault opt operator 2023-04-04 15:57:33 +02:00
Denis Merigoux
87a41f172e
Add ocaml-crunch to build deps (#441) 2023-04-04 15:57:19 +02:00
adelaett
06f2e56c74 fix closure conversion non-existent variable 2023-04-04 15:57:11 +02:00
adelaett
8ef3db005f clean deadcode 2023-04-04 15:56:49 +02:00
Denis Merigoux
a29339ed2f
Stringify JSON fields 2023-04-04 15:44:00 +02:00
Denis Merigoux
7d278caa30
Update OCaml assets 2023-04-04 15:19:08 +02:00
adelaett
61bdd751e4 corrected program equality 2023-04-04 15:18:08 +02:00
adelaett
b6cf552913 lcalc optimization documentation 2023-04-04 15:17:59 +02:00
adelaett
948af85abd simplification of the driver 2023-04-04 15:17:43 +02:00
Denis Merigoux
3932da6648
Clean allocations_familiales with help of lints 2023-04-04 13:53:30 +02:00
Alex
70c807b684 Add ocaml-crunch to build deps 2023-04-04 11:02:58 +00:00
Denis Merigoux
16ab1b310d
Restore tests 2023-04-03 18:32:33 +02:00
Denis Merigoux
18382b99f5
Further clean from prestations_familiales elements belonging to allocations_familiales 2023-04-03 18:13:53 +02:00
Denis Merigoux
7d25ab6e24
Removed useless received benefits 2023-04-03 17:58:35 +02:00
Denis Merigoux
a5b09cb3d8
Remove field used for resources computation 2023-04-03 17:57:21 +02:00
Denis Merigoux
602a3bb6e9
Removed useless prestation_courante marker 2023-04-03 17:54:41 +02:00
Denis Merigoux
fccdacf484
Fixed bug found through linting
limitation personnes à charges
(variable not used)
2023-04-03 17:53:28 +02:00
Denis Merigoux
6abe8e0123
Remove code about income calibration (unfinished stub) 2023-04-03 17:06:08 +02:00
Denis Merigoux
19f44a8ab3
Fix bug found through linting:
eligibility for moving benefits was not used!
2023-04-03 16:59:45 +02:00
Denis Merigoux
d7bcc8e506
Remove code for wealth computation because part of resources computation
we're not doing resources computation yet
2023-04-03 15:16:41 +02:00
Denis Merigoux
c74d8870e6
Revert "Removed unused code thanks to linting"
This reverts commit b3e39d2d24.
2023-04-03 14:16:02 +02:00
Denis Merigoux
ad02a0959d
Merge branch 'master' into aides_logement_outre_mer 2023-04-03 14:12:10 +02:00
Denis Merigoux
38b0041bb8
Add common linting passes to Catala (#438) 2023-04-03 14:01:02 +02:00
Denis Merigoux
d147238088
Apply suggestions by @altgr 2023-04-03 13:42:14 +02:00
adelaett
685785eaa3 adding assert_closed function 2023-04-03 11:20:19 +02:00
adelaett
f897226ffb bindlib extension documentation 2023-04-03 10:57:52 +02:00
adelaett
84548769b4 renable optimization since the behavior of ite is now different 2023-04-03 10:56:44 +02:00
adelaett
cc1c018818 trace flag when needed 2023-04-03 10:56:13 +02:00
adelaett
2a50a06b36 invariant mli 2023-04-03 10:38:33 +02:00
Louis Gesbert
173b685676
Generic mapping function across different ASTs (#439) 2023-04-03 09:42:40 +02:00
Denis Merigoux
e80143b3ca
Last linting pass and update tests 2023-03-31 17:56:45 +02:00
Denis Merigoux
b3949ae15c
Update assets 2023-03-31 16:55:51 +02:00
Denis Merigoux
6d71d52a2e
Update tests and create disable_warnings option 2023-03-31 16:43:03 +02:00