Commit Graph

100 Commits

Author SHA1 Message Date
Denis Merigoux
92189e6439
Fix bug introduced by a1ebb67 2022-08-16 14:40:12 +02:00
Denis Merigoux
a1ebb6715c
Remove age prompts, deduct from birth date correctly 2022-08-16 11:08:13 +02:00
Louis Gesbert
e50b567000 Fix relative dir in french_law artifacts ; add a note in examples/README.md 2022-08-04 17:36:50 +02:00
Louis Gesbert
289975ebe8 Generate french law python artifacts through dune
(they're no longer reformatted, at the moment, though)
2022-08-03 19:04:14 +02:00
Louis Gesbert
9db038812c Include generation of json_schema artifacts
(plus other small Makefile improvements)
2022-08-03 18:55:42 +02:00
Louis Gesbert
0600501ec6 Generate french_law artifacts through dune
The files where manually generated through Makefile rules, and
versionned (with an outdated version).

The issue was that we had:
- `dune` building Catala
- Makefiles calling `catala` to build and copy the `french_law/ocaml/law_source`
  files
- then `dune` again to build `french_law`

The result was that `dune build` (without running `make` first) would
return a weird error.

The proposed solution adds ad-hoc dune rules to call the catala
binary, so that it can handle the whole pipeline correctly. If OCaml
is purely a backend, though, a simpler solution that makes us less
dependent on dune would be to handle the compilation of `french_law`
manually.

The dune rules are set to 'promote' the files so that it preserves the
fact that they are versionned (but with no confusion of the build system
about where they should come from anymore)
2022-08-03 18:55:42 +02:00
Emile Rolley
1a6934b538 feat(build): add the generation of json schemas to the build workflow 2022-07-29 18:47:42 +02:00
Louis Gesbert
1d268a940b Add tests for the examples as well 2022-07-08 17:18:58 +02:00
Denis Merigoux
541f014396
Correct hierarchy in family benefits epilogue 2022-06-23 10:05:24 +02:00
Denis Merigoux
96f1845afd
Merge branch 'master' into allocations_logement 2022-05-08 15:20:04 +02:00
Denis Merigoux
33c21e9a07
Include prestations familiales in allocations logement for L512-3 logic 2022-05-06 12:21:57 +02:00
Denis Merigoux
080e60c25d
Fixes money cents parsing 2022-05-05 16:50:33 +02:00
Denis Merigoux
d9da198740
Prettify family benefits 2022-05-05 14:00:44 +02:00
Denis Merigoux
1848d6bf88
Format table [skip ci] 2022-05-02 16:20:39 +02:00
Denis Merigoux
bc8bec7ca7
Remove duplicate code due to Catala code factoring 2022-03-17 14:12:34 +01:00
Denis Merigoux
42cd56eaf1
Use grouped exceptions in allocations familiales code 2022-03-09 11:25:16 +01:00
Denis Merigoux
7d9379e43c
Merge branch 'master' into allocations_logement 2022-02-16 14:56:48 +01:00
Denis Merigoux
5c6a43da57
Fixed compilation to examples
Had to rename fields of allocations familiales because of a stupid record field confusion in OCaml
2022-02-07 18:38:31 +01:00
Denis Merigoux
1c4a0bdd5d
Updated all examples with input/output decorations [skip ci] 2022-02-07 18:18:23 +01:00
Denis Merigoux
a5ed25c5c6
Merge branch 'master' into allocations_logement 2022-02-03 16:57:14 +01:00
Denis Merigoux
a963a01f60
Unit tests for examples now use clerk 2022-01-11 10:42:12 +01:00
Denis Merigoux
e36725a2a8
Added other field 2022-01-07 09:47:10 +01:00
Denis Merigoux
c869c47e8e
Restore tests to allocations familiales 2022-01-05 16:29:30 +01:00
Denis Merigoux
eadd2cadf9
Ajout non cumul prestations familiales 2021-11-26 16:51:25 +01:00
Denis Merigoux
cbee66db24
Added Mayotte computation to allocations familiales 2021-11-07 00:39:12 +01:00
Denis Merigoux
a171e8aaed
Fixed title hierarchy in allocations familiales 2021-11-06 23:38:43 +01:00
Emile Rolley
9aaa614410 refactor(parser): add the new catala-metadata markup 2021-10-01 10:01:25 +02:00
Denis Merigoux
03b44f5b15
Python backend debugged and tested 2021-06-25 00:47:12 +02:00
Denis Merigoux
fffd0ffb63
Working the way into the Python backend 2021-06-22 14:55:43 +02:00
Denis Merigoux
f9b88e2259
Fixed heading precedence in examples 2021-05-15 16:04:35 +02:00
Denis Merigoux
3c8d187be0
Big refactoring of the literate programming structure
Partially fixes #120
Removes the distinction between headers and articles, streamlines the surface AST
Changes affects lexers and parser
2021-05-15 01:16:08 +02:00
Denis Merigoux
2cad9823f7
Update after pair programming session on allocations familiales
Reviewers: Liane Huttner, Wissem Haddag, Marie Moy, Anastasia de Chanaud, Athénaïs Giscard d'Estaing
2021-04-14 23:00:46 +02:00
Denis Merigoux
e7d93a3020 Added last decret to cover 2021 2021-04-12 00:22:15 +02:00
Denis Merigoux
eaeebba72c
Basic logging exposed in Javascript
Lacks value embedding though
2021-04-03 19:31:38 +02:00
Denis Merigoux
c660720d18 Pair programming session on allocations familiales 2021-03-30 17:56:56 +02:00
Denis Merigoux
c2bc7e9323 Fixed unit test 2021-03-18 18:23:04 +01:00
Denis Merigoux
76c86b6e6b Fixed subtle allocations familiales bugs in unreviewed part 2021-03-18 18:13:02 +01:00
Denis Merigoux
c67abdd0c5
Updating the allocations familiales library, various fixes 2021-03-17 19:35:21 +01:00
Denis Merigoux
c9c0fcea6c
Update allocations familiales after pair programming session 2021-03-17 16:00:48 +01:00
EmileRolley
28ff1b075b refactor: modify the parser and tests in order to support the ISO date format 2021-03-16 12:08:02 +01:00
EmileRolley
b77b3bf164 refactor(examples): change remaining examples syntax 2021-03-10 10:53:24 +01:00
EmileRolley
f650c70261 refactor(tests): update tests based on the french lexer 2021-03-09 19:11:44 +01:00
EmileRolley
9a29380a8d refactor(lexer_fr): simply '> #' to '>' for the markdown syntax of includes and metadata delimiters 2021-03-09 17:52:34 +01:00
EmileRolley
b3199194e1 refactor(examples): change the allocation_familiales example syntax to markdown 2021-03-09 17:13:08 +01:00
Denis Merigoux
02a6cbb966 Added new decret about the SMIC 2021-02-04 18:28:56 +01:00
Denis Merigoux
b3c8b49a3b Fixed typo 2021-02-01 22:42:58 +01:00
Denis Merigoux
647320d4aa Benchmark, randomness of inputs, bugs fixed 2021-01-30 17:54:05 +01:00
Denis Merigoux
313ca065f4 Benchmarked the result on allocations familiales, it is fast enough 2021-01-28 23:46:39 +01:00
Denis Merigoux
617d19df24 Improved OCaml backend, made dev loop 2021-01-28 18:30:01 +01:00
Aymeric Fromherz
d856f2de72 Remove labels and named exceptions in allocations_familiales when possible 2021-01-21 23:56:36 -05:00