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
Louis Gesbert
72882f82df
Reformat
2023-08-31 17:55:36 +02:00
Louis Gesbert
c58e76f4e5
Gather the maps for subscope vars to the top level
...
(they use UIDs so this doesn't jeopardize proper name resolution ; and it allows
resolution of subscope calls without further code modifications)
2023-08-31 17:55:36 +02:00
Louis Gesbert
bcde10242f
Specialise the Map.Not_found exception raised by Map.find
...
... and add a custom printer
Since this is a very common bug, this patch should gain us a lot of time when
debugging uncaught Not_found errors, because the element not found can now be
printed straight away without the need for further debugging.
The small cost is that one should remember to catch the correct specialised
`Foo.Map.Not_found _` exception rather than the standard `Not_found` (which
would type-check but not catch the exception). Using `find_opt` should be
preferred anyway.
Note that the other functions from the module `Map` that raise `Not_found` are
not affected ; these functions are `choose`, `min/max_binding`,
`find_first/last` which either take a predicate or fail on the empty map, so it
wouldn't make sense for them (and we probably don't use them much).
2023-08-31 17:55:36 +02:00
Louis Gesbert
9bac045d03
Implement module lookups for scopes, structs, and enums
2023-08-31 17:54:39 +02:00
Denis Merigoux
7b7a396665
Fix typos for error triggered when no input variables were provided ( #498 )
2023-08-17 14:00:39 +02:00
Artur Cygan
c33cccd7c1
Improvements to the Polish translation
2023-08-17 12:15:25 +02:00
Adam Olech
8382492816
Fix typos for error triggered when no input variables were provided
2023-08-17 00:47:48 +02:00
Denis Merigoux
13654bde3a
R backend for Catala ( #496 )
2023-08-07 18:10:44 +02:00
Denis Merigoux
6d7b1f2585
Last fixes
2023-08-07 17:55:04 +02:00
Denis Merigoux
8743b73459
Debugging the R backend
2023-08-07 16:19:13 +02:00
Denis Merigoux
4d419ac167
Switch to S4 classes and package runtime
2023-08-07 15:58:55 +02:00
Denis Merigoux
5adfb0d9ae
Fix annoying highlighting problem
...
About variables starting with "an" or "ou" in French.
Should be replicated in other languages.
2023-08-07 14:59:52 +02:00
Denis Merigoux
695faebefb
Cleaning up
2023-08-05 16:23:29 +02:00
Denis Merigoux
e2f8e56e7d
Backend seems to work, needs more debugging
2023-08-05 14:28:18 +02:00
Denis Merigoux
62ea40a40d
Fix tryWith compilation
2023-08-05 13:05:31 +02:00
Denis Merigoux
d0483d681a
First test passing
2023-08-04 19:30:43 +02:00
Denis Merigoux
1df2ebda13
Correct compilation of tryCatch
2023-08-04 19:03:10 +02:00