Louis Gesbert
fd50e6186f
Fix default typing across modules
2023-11-27 11:06:33 +01:00
Louis Gesbert
9203e4f7bb
Verification: support unboxed defaults
2023-11-27 11:06:33 +01:00
Louis Gesbert
dc3ffa0dcd
Fix some error handling on scope calls
...
(and add suggestions)
2023-11-27 11:06:33 +01:00
Louis Gesbert
d00cac09ad
Harmless test results changes
2023-11-27 11:06:33 +01:00
Louis Gesbert
958aaebac3
Typing defaults fixes: keep in and out type in scope sigs
2023-11-27 11:06:16 +01:00
Louis Gesbert
ab6bec390d
Adjust plugins and warnings
2023-11-27 11:06:16 +01:00
Louis Gesbert
0be2636e65
Typing defaults: making the compiler adhere to the new type discipline
2023-11-27 11:06:01 +01:00
Louis Gesbert
52486af6ac
Correct typing of context subscope variables
2023-11-27 11:06:01 +01:00
Louis Gesbert
b98bad8c33
Add a --no-typing option
...
it is useful e.g. to be able to print intermediate ASTs when they don't type, to
debug the typing errors. This is better than commenting the typing line each
time.
Note that the option is not available on all targets (esp. not for ocaml and
python outputs ; it's allowed on the interpreters for debugging purposes but I'm
not sure if that's a good idea)
2023-11-27 11:06:01 +01:00
Louis Gesbert
9425753eca
Typer: add built-in "'a default" type
2023-11-27 11:06:01 +01:00
Louis Gesbert
e2730c0b44
Avoid redundant position in type error
2023-11-27 11:05:58 +01:00
Louis Gesbert
4fa9326618
Typer: on error, print the expression being typed in debug mode
...
useful when typing fails on internally generated expressions
2023-11-27 11:03:47 +01:00
Denis Merigoux
63f0cad312
Debug French housing benefits by comparing to the CAF API ( #531 )
2023-11-24 16:52:29 +01:00
Denis Merigoux
2b89e530b0
Code refactoring that works at execution + mypy
2023-11-23 15:38:45 +01:00
Denis Merigoux
fb85c64cfa
Continue debugging
2023-11-23 11:54:54 +01:00
Denis Merigoux
bb414eed06
Improve CNAF<->Catala rules, remove treacherous isinstance()
2023-11-22 18:32:52 +01:00
Denis Merigoux
14dffc2223
Fix links to CNAV
2023-11-22 18:09:04 +01:00
Denis Merigoux
fc242a5d1f
Fix Python compilation and runtime
2023-11-22 18:08:44 +01:00
Denis Merigoux
67d1665afc
Progress
2023-11-22 15:02:40 +01:00
Denis Merigoux
cf70e6cbb1
Fix bug in taux_loyer_éligible!
...
The formulae in the law is complex and there was a transcription error
2023-11-22 14:52:25 +01:00
Denis Merigoux
b25944a148
Fix bug in taux_loyer_éligible!
...
The formulae in the law is complex and there was a transcription error
2023-11-22 14:51:02 +01:00
Denis Merigoux
b055558ebf
Merge branch 'master' into api_apl
2023-11-22 11:31:02 +01:00
Denis Merigoux
03173e50d0
Mise à jour arrêté du 22 septembre 2023 ( #530 )
2023-11-22 11:27:52 +01:00
Denis Merigoux
4cff84291a
Mise à jour arrêté du 22 septembre 2023
2023-11-22 11:11:43 +01:00
Denis Merigoux
15921b4fda
Improve simulation
2023-11-22 10:11:20 +01:00
Denis Merigoux
d2e4da144c
Directly call the API
2023-11-21 12:15:36 +01:00
Denis Merigoux
9b287cc0a5
Refresh the code
2023-11-21 10:49:32 +01:00
adelaett
363ece217e
fix nix environment
2023-11-16 16:52:23 +01:00
Denis Merigoux
c46f5d568d
Don't put a box in list printing but do indent ( #524 )
...
Don't put a box in list printing but do indent
2023-11-02 11:56:57 +01:00
Louis Gesbert
1d8e3748ea
Improving the printer on arrays
2023-11-02 11:12:51 +01:00
Denis Merigoux
c4d1c9a1ad
fix(examples): remove empty lines at the beginning and the end of code blocks ( #526 )
2023-10-30 11:09:23 +01:00
Emile Rolley
6d66cfe10a
fix(examples): remove empty lines at the beginning and the end of catala code blocks
2023-10-27 17:32:46 +02:00
Louis Gesbert
73df41eb6f
More complete tests on module calls and a bunch of fixes ( #525 )
2023-10-17 09:42:48 +02:00
Louis Gesbert
7141734d47
Improve trace printing ( #523 )
2023-10-17 09:39:53 +02:00
Louis Gesbert
bd90555e96
The interpreter might return custom terms
...
since scope outputs may contain functions this shouldn't be excluded; functions
from the interpreter now reflect this
2023-10-13 16:16:45 +02:00
Louis Gesbert
3b0e576a24
Fix module name propagation
2023-10-13 16:13:02 +02:00
Louis Gesbert
f25e38a6d7
Add complete scope call tests (across modules)
2023-10-13 16:12:19 +02:00
Louis Gesbert
2d062a4ad0
Fix bug in dependency analysis around scope call arguments
2023-10-13 16:12:15 +02:00
Louis Gesbert
d09113163d
Fix bug in dependency analysis around scope call arguments
2023-10-13 15:09:36 +02:00
Louis Gesbert
61ec34e3d9
Fix handling of context vars with all call cases
2023-10-12 14:47:43 +02:00
Louis Gesbert
af8ff472a5
Fix handing of context variables in modules
...
The call convention imposes a translation of their types within the scope input
structs definitions in dcalc.
2023-10-12 14:42:57 +02:00
Louis Gesbert
f8b6e60e16
Fix handling of context variables in the interpreter
2023-10-12 14:42:57 +02:00
Louis Gesbert
dec0ca2041
Update reformatting patches list
2023-10-12 14:42:57 +02:00
Denis Merigoux
9024cf1222
Don't put a box in list printing but do indent
2023-10-12 12:01:28 +02:00
Louis Gesbert
4f22f412d2
Clerk: fix catala lookup function again
2023-10-11 13:47:37 +02:00
Louis Gesbert
186e2dfa64
Clerk: fix lookup of 'catala' command in PATH
2023-10-11 12:03:10 +02:00
Denis Merigoux
74684899c8
If you've in debug mode we can argue you want to see functions
2023-10-11 10:00:09 +02:00
Denis Merigoux
fce192be20
Improve trace printing
2023-10-11 09:37:36 +02:00
Denis Merigoux
24e43861f8
Fix wrongly located catala runtime library
2023-10-10 14:11:53 +02:00
Denis Merigoux
aa0ab95230
Clerk: ensure error messages are printed properly ( #522 )
2023-10-10 14:04:42 +02:00