Louis Gesbert
19033669f5
Add support for paths in the parser
...
Using them will lead to "not supported yet" errors soon after, but it's a start
to get to handling separate modules.
The idea is that `foo` can now also be `Bar.foo`, `Bar.Baz.foo`, `foo.Struc.fld`
can be `foo.Bar.Baz.Struc.fld`, etc.
The next steps are to enable the lookups to handle this paths, and to provide
ways to load the external modules to feed these lookups.
2023-01-16 12:09:23 +01:00
Louis Gesbert
47502335aa
Refactor the parser to use priorities
...
Define a single expression rule with disambiguation using token priorities
instead of the many layers of intermediate rules with explicit sub-terms.
Also replaces `in` for collection operations (`x+1 for foo in [1;2]`) with
`among` which helps a lot.
2022-12-19 15:12:53 +01:00
Louis Gesbert
f236e2cfb2
Replace the type conversion and rounding operators with overloads
...
Ref. #366
Also updates `CONTRIBUTING.md`.
This was pretty straight-forward :)
2022-12-13 15:32:49 +01:00
Louis Gesbert
dcb422302d
Tests/examples update
2022-12-13 12:30:40 +01:00
Louis Gesbert
09d49ab1cc
French syntax: replace 'sortie' with 'résultat'
...
as per comment in #357
2022-12-13 12:27:33 +01:00
Louis Gesbert
a51d082033
Use scope calls in "Aides logement"
2022-11-07 14:23:10 +01:00
Louis Gesbert
b19a7660fc
Fix ambiguities in examples
2022-10-21 17:36:44 +02:00
Denis Merigoux
062fea89d7
No RLS for logement-foyers
2022-08-19 11:54:15 +02:00
Denis Merigoux
d6ad4604ce
Only social conventions for logement-foyers
2022-08-19 11:39:04 +02:00
Denis Merigoux
1553f88cf5
Remove unnecessary input
2022-08-18 18:53:30 +02:00
Denis Merigoux
2bc1b7d7f7
RLS only for social housing
2022-08-18 16:00:52 +02:00
Denis Merigoux
62ff234319
Shuffle data around
2022-08-18 15:27:01 +02:00
Denis Merigoux
331789bfee
Remove input data duplicate
2022-08-16 17:39:18 +02:00
Denis Merigoux
82940b63e3
Remove mode_occupation from AL/APL logement-foyer's input
...
In favor of a more restricted input
2022-08-16 17:01:53 +02:00
Denis Merigoux
54e08585c6
Put sectorial information where it belongs
2022-08-16 16:22:51 +02:00
Denis Merigoux
a1ebb6715c
Remove age prompts, deduct from birth date correctly
2022-08-16 11:08:13 +02:00
Denis Merigoux
1fdb21326b
Fix logement meublé thing
2022-08-15 17:43:29 +02:00
Denis Merigoux
489d2f9506
Fixed bugs in allocation logement eligibility
2022-08-15 17:16:23 +02:00
Denis Merigoux
c71b8e28c6
Moving parameters into property-section of data
2022-08-12 11:16:52 +02:00
Denis Merigoux
a48e90150c
Use let-bindings to refactor code
2022-08-11 14:12:11 +02:00
Denis Merigoux
038e6068e6
Small improvements to housing benefits
2022-08-10 18:13:07 +02:00
Denis Merigoux
97b6e14740
Removed useless variable
2022-07-28 15:02:43 +02:00
Denis Merigoux
ad0f02837c
Fix some TODOs
2022-07-21 14:54:05 +02:00
Denis Merigoux
47f3632b5a
Don't round as much according to DGALN
2022-07-19 16:29:26 +02:00
Denis Merigoux
793efb4682
In the process of switching some money types to decimal [skip ci]
2022-07-19 13:53:12 +02:00
Denis Merigoux
f5c3910e74
Formatting [skip ci]
2022-07-16 18:36:26 +02:00
Denis Merigoux
bd6218fe94
Include some tests given by DGALN/DHUP/FE4
2022-07-16 14:36:56 +02:00
Denis Merigoux
94a1d9bf21
Fix subtle bug. Might be worth it to ask to DGALN! [skip ci]
2022-07-14 18:11:31 +02:00
Denis Merigoux
edbb862709
Factorize equivalence minimal loyer and nombre parts into their own scopes
2022-07-14 18:10:45 +02:00
Denis Merigoux
29f9dfe055
More testing and code fixing
2022-07-14 15:11:28 +02:00
Denis Merigoux
80843ccefb
More testing
2022-07-13 17:27:29 +02:00
Denis Merigoux
ec6e186ab2
Ajout archives arrêtés pour anciens paramètres de calcul
2022-07-11 22:52:02 +02:00
Denis Merigoux
81fe7db311
Implemented better split custody handling that applies correct post-processing steps to the
...
corrected amount
2022-07-07 15:19:32 +02:00
Denis Merigoux
6987719f3b
Prepping for correct split custody sharing
2022-07-07 15:03:03 +02:00
Denis Merigoux
5e45940e1b
Merge branch 'master' into allocations_logement
2022-07-06 16:43:14 +02:00