Emile Rolley
b2bba6eaf0
feat(jsoo): factorize log events related function to the object eventManager
2022-07-22 16:52:56 +02:00
Emile Rolley
37a8cf7090
fix(rebase): changes Lcalc and Dcalc AST manipulation according #272
2022-07-22 16:52:56 +02:00
Emile Rolley
d3d254033c
feat(runtimes/jsoo): add a new class type duration with conv functions
2022-07-22 16:52:56 +02:00
Emile Rolley
0c180e12f9
refactor(runtimes): add runtime_ocaml and runtime_jsoo in the catala package
2022-07-22 16:52:56 +02:00
Emile Rolley
cd33ed9de7
feat(plugins/jsoo): now generate both .ml and _web_api.ml file
2022-07-22 16:52:56 +02:00
Emile Rolley
59f50f95e8
refactor(plugins/jsoo): use To_ocaml function directly by extending its interface
2022-07-22 16:52:56 +02:00
Emile Rolley
c09b457988
refactor(runtimes): add move the OCaml runtime into runtimes/ocaml
2022-07-22 16:52:56 +02:00
Emile Rolley
cda3bfb3aa
feat(plugins/jsoo): format type declaration
2022-07-22 16:52:56 +02:00
Emile Rolley
15be4b7279
refactor(law_source): remove the unused Enfant submodule from the allocation_familiales.mli
2022-07-22 16:52:56 +02:00
Denis Merigoux
1013fadc50
Merge pull request #289 from CatalaLang/fix_171
...
Fix encoding of chains of groups of exceptions
2022-07-22 16:48:37 +02:00
Denis Merigoux
5b6bb88a47
Add -B flag to ensure everything's fine
2022-07-22 16:30:59 +02:00
Denis Merigoux
df9f02f943
Update Python asset
2022-07-22 16:29:47 +02:00
Denis Merigoux
b7c468bd1e
Fix faulty unboxing
2022-07-22 16:18:55 +02:00
Denis Merigoux
522deb50c2
Factorizing Dcalc.program
2022-07-22 15:49:57 +02:00
Denis Merigoux
0304602433
Trying to fix Bindlib unboxing bug [skip ci]
2022-07-22 12:31:05 +02:00
Denis Merigoux
85144c35fb
Simplify default tree encoding
2022-07-22 12:31:02 +02:00
Denis Merigoux
3895743f20
Cleaned code for generating exception graph, now correct and fully general
...
Missing some encoding optimizations
2022-07-22 12:25:41 +02:00
Denis Merigoux
85cb2d5c8d
Starting debug
2022-07-22 12:11:34 +02:00
Denis Merigoux
109c7dec31
Create failing test
2022-07-22 12:11:34 +02:00
Emile Rolley
61899cd698
fix(examples): assets are now generated from the repo root
2022-07-20 18:29:01 +02:00
Denis Merigoux
bf33cbfa49
Updating assets
2022-07-20 15:58:24 +02:00
Denis Merigoux
39a4c20c7b
Merge pull request #292 from CatalaLang/tweak-dev-mode
...
Use custom Docker image for CI
2022-07-20 15:44:50 +02:00
Denis Merigoux
5bcee7ceba
Correctly generate HTML output
2022-07-20 15:35:26 +02:00
Louis Gesbert
0bd80c7c22
Update INSTALL.md instructions
2022-07-20 12:05:19 +02:00
Louis Gesbert
4a38e81178
Pin origin Docker image to its current version
...
ensuring more reliable reproducibility
2022-07-20 12:05:19 +02:00
Louis Gesbert
5b1a6a2217
Fix ninja arguments order
...
works better when replacing 'ninja' with the alternate implementation 'samurai'
2022-07-20 12:05:19 +02:00
Louis Gesbert
39139816ff
Use groff directly instead of man2html
2022-07-20 12:05:19 +02:00
Louis Gesbert
dfccf8e139
Run all CI tests through a Docker container
...
Also reworks some dependency handling
2022-07-20 12:05:17 +02:00
Louis Gesbert
19dbce895c
Shell scripts: POSIX + correct error reporting
2022-07-20 12:04:30 +02:00
Denis Merigoux
6d224e1a41
Merge pull request #272 from AltGr/types-everywhere
...
Annotate the ASTs with type information everywhere
2022-07-20 11:07:17 +02:00
Louis Gesbert
e2e90cd080
Remove stale comment in dune file
2022-07-20 10:57:56 +02:00
Louis Gesbert
d9fbaa704b
Restore some commented out code, add some comments
2022-07-19 21:41:55 +02:00
Louis Gesbert
b9099ac7a4
Use resolved types in type annotations
...
Adding an 'inferring' annotation type only used during typing
2022-07-19 18:47:00 +02:00
Catala nix updated
cf5cc3782a
update lock files
2022-07-18 00:22:56 +00:00
Louis Gesbert
61063b5234
Small cleanup and clarifying a dark spot of the Ast interface
2022-07-13 12:28:08 +02:00
Louis Gesbert
83de1a229b
Mark the optimization passes as untyped
...
It's not expected to stay that way forever, but some additional effort will be required for them to preserve (or restore) types; until then, be safe and don't forward possibly incorrect information.
2022-07-13 12:17:43 +02:00
Denis Merigoux
0a0c1015e1
Merge pull request #288 from CatalaLang/191-fix
...
feat(backend): disambiguate OCaml record names derived from Catala structs
2022-07-13 10:14:59 +02:00
Denis Merigoux
a5c80b3ff1
Not silent commands
2022-07-13 09:53:20 +02:00
Emile Rolley
4991350b58
feat(backend/ocaml): disambiguate OCaml record names derived from Catala struct
2022-07-12 16:12:18 +02:00
Louis Gesbert
97120c4dc2
compiler/verification: force a typed AST as input
2022-07-12 15:57:50 +02:00
Emile Rolley
43eb4de28b
Merge pull request #286 from CatalaLang/fix_192
...
Corrects and finished the work of #285 , by restoring automatic rebuild of all tests by ninja
2022-07-12 11:26:07 +02:00
Emile Rolley
1d05b57bdd
refactor(clerk): suffix the ninja build outputs with .PHONY instead of .out
2022-07-12 11:16:12 +02:00
Louis Gesbert
4726d00df8
Adjust test results
...
Nothing shocking here:
- division by zero now reported on the application rather than the
operator
- renumbering of printed bindlib variables
- some whitespace changes
2022-07-11 17:43:59 +02:00
Louis Gesbert
b8e73ab3ae
Tweak build/ci
2022-07-11 17:42:34 +02:00
Louis Gesbert
7485c7f2ce
Reformat
2022-07-11 17:42:34 +02:00
Louis Gesbert
985ecdac6d
Bump required OCaml version to 4.13
...
This version of OCaml introduces [let-punning](https://v2.ocaml.org/manual/bindingops.html#ss:letops-punning )
It is just syntactic sugar, but OCamlformat makes use of it, without a configuration option, when the OCaml version permits.
This means that the same version of OCamlformat gives different results depending on the underlying OCaml version. Our options, if we want to keep the forced-format policy on the repository, are therefore:
- to disable it whenever binding operators are used (with this PR that's a lot of places, and this becomes too cumbersome, besides defeating the purpose)
- to force devs to use an earlier version of OCaml so that reformatting outputs something compatible
- to bump the minimum OCaml requirement
The latter is the simplest, but it can be reviewed if compatibility is required. Last option would be to report the issue to OCamlformat and hope that they provide a workaround...
2022-07-11 17:42:34 +02:00
Louis Gesbert
504f54c31e
Rework type error reporting
2022-07-11 17:42:34 +02:00
Louis Gesbert
02fc255177
Typing scopes: bottom-up rather than top-down
...
it's better for error messages (and similar to how it was done before)
2022-07-11 17:42:34 +02:00
Louis Gesbert
18e86621d5
Port verification code to the AST changes
2022-07-11 17:42:34 +02:00
Louis Gesbert
5f882e35a2
dcalc ast: make the map function more polymorphic
2022-07-11 17:42:34 +02:00