Commit Graph

49 Commits

Author SHA1 Message Date
Denis Merigoux
107ff95dc4
Remove dependency on ppx_expect and use alcotest instead 2023-04-21 10:37:31 +02:00
adelaett
a9809b69a9
Merge branch 'master' into adelaett-withoutexceptionsfix 2023-04-14 11:19:58 +02:00
adelaett
3e35d4b826
Merge branch 'master' into adelaett-withoutexceptionsfix 2023-04-11 11:49:22 +02:00
adelaett
12d85570e8 fix printing boxes & merge issues 2023-04-07 10:51:21 +02:00
alain
ec40de83fc
Merge branch 'master' into adelaett-withoutexceptionsfix 2023-04-06 13:57:22 +02:00
adelaett
06147ac5b6 typing working in the file, but does not accept
Lcalc for some reason
2023-04-05 10:32:52 +02:00
Alex
70c807b684 Add ocaml-crunch to build deps 2023-04-04 11:02:58 +00:00
adelaett
61830bc348 fixing runtime merge errors 2023-03-30 11:02:35 +02:00
adelaett
6dee3874cc Merge branch 'master' into adelaett-withoutexceptionsfix 2023-03-30 10:50:32 +02:00
adelaett
72ceafd67c scopes does not return optional terms 2023-03-23 10:45:44 +01:00
adelaett
61ad00f277 unit test infrastructure for optimization 2023-03-17 17:19:50 +01:00
Louis Gesbert
deb12d2c4a Bump version to 0.8.0
Changelog:
---

A lot has been going on, with more than 530 patches and 70 PRs merged since
0.7.0 last summer. In summary:

- Quite a lot of syntax improvements and changes. Checkout the latest
  [cheat-sheet](https://catalalang.github.io/catala/syntax.pdf) for an overview

- Allow local `let ... equals ... in ...` definitions

- Better error messages and positions throughout

- Added the ability to directly call a scope and retrieve its outputs, like a
  function

- Added disambiguation, allowing to access structure fields without specifying
  the structure type each time

- Added automated resolution of operators, allowing e.g. to write just `+` in
  place of all the type-specific operators `+.`, `+$`, `+@`, `+^`, etc.

- More consistent priority for operators. It is no longer allowed to write `a
  and b or c` without parenthesis.

- Added and changed some operators (`date + duration` now allowed either way,
  `int / int` now returns a decimal, added `duration / duration`)

- Added the ability to have variables and functions defined at
  top-level (outside of any scope). See annex A of the tutorial for details.

- Added support for functions with multiple arguments

- Some big refactors in the compiler, allowing much better code sharing between
  the different passes, and making it much easier to extend. Also added the
  possibility to run the type-checker earlier, etc.

- Countless bug-fixes

- Improvements to our proof backend with Z3

- A tool to automatically synchronise with the upstream French law from
  Legifrance
2023-03-08 18:07:53 +01:00
adelaett
c680b932ff update nix files 2023-03-03 14:51:51 +01:00
adelaett
78f121b44a before any issues with mark on code_item 2023-03-03 11:39:55 +01:00
adelaett
be5de3f979 update clerk package description to do the checks (and test catala) 2023-02-24 15:06:50 +01:00
adelaett
c7c2343d8e Fix nix update
move cppo and menhir from build dependencies to native build dependences
cleanup code
2023-02-24 15:06:14 +01:00
adelaett
c155e18fda
unpinning bindlib, cmdliner, re, ppx_yojson_conv 2022-12-12 11:55:22 +01:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
55b8e9dffd
build/fix: bump unionFind to last version
Fixes #342
2022-10-03 11:29:59 +02:00
TWal
844f2dfbba
Fix nix build for #306 2022-09-05 16:15:20 +02:00
Denis Merigoux
e28b45f2c3
Merge branch 'master' into rmonat_dates_calc_lib 2022-09-05 14:28:34 +02:00
Denis Merigoux
85fe8cb6d8
Remove calendar nix dependency 2022-09-05 14:28:19 +02:00
TWal
ab647d4fac Fix nix build 2022-09-05 13:25:31 +02:00
Denis Merigoux
1d9af3cc02
Attempt to revive nix build 2022-08-08 18:05:43 +02:00
Denis Merigoux
03e598128a
Bumping version number 2022-08-08 17:26:07 +02:00
Emile Rolley
d85812109c refactor(compiler): remove the camomile dependency due to the new Utils.String_common module based on Ubase 2022-08-05 10:55:45 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
15aee21670
disable clerk tests in nix build 2022-06-07 08:56:37 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
6fb8b06e07
revert dependency between clerk and catala 2022-06-07 08:54:03 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
c48b884374
typo 2022-06-07 08:36:15 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
5b845f4f9b
disable test in the nix build 2022-06-07 08:17:14 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
9db9db5421
changed sedlex 2022-06-06 11:46:21 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
8433a2b045
adding clerk as a dependency to catala 2022-05-31 18:10:45 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
13b94eb469
calling using self to get the current packages. 2022-05-31 16:59:09 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
bf3b24a3f4
encoding clerk and ninja_utils inside nix 2022-05-31 16:56:12 +02:00
Lucas Franceschino
33773f42b4 Fix Nix and convert to flakes 2022-05-30 15:18:18 +02:00
Denis Merigoux
b20b2f97be
Trying again to fix nix build? 2022-04-11 11:21:10 +02:00
Denis Merigoux
53d7515c3c
Fix nix quirk 2022-04-11 11:11:32 +02:00
Denis Merigoux
5e3274f00a
Restore nix no-web patch 2022-03-28 19:09:00 +02:00
lIlIlIlIIIIlIIIllIIlIllIIllIII
bf73109ecc
no-web-patch fix 2022-03-10 12:00:25 +01:00
Denis Merigoux
756e7cb9b2
Merge branch 'master' into alain_default-option 2022-02-24 16:41:35 +01:00
Alain
73fe2f876c Revert "Merge pull request #196 from CatalaLang/fixup-cmdliner"
fix cmdliner to 1.0.4

This reverts commit 8e1a1ccb63, reversing
changes made to 4812830a25.
2022-02-21 14:53:48 +01:00
Denis Merigoux
69a7465339
Merge branch 'master' into alain_default-option 2022-02-14 12:09:11 +01:00
Alain
9970b48308 fix nix build by manually upgrading cmdliner 2022-02-14 11:26:59 +01:00
Denis Merigoux
97f8875a39
Merge branch 'master' into alain_default-option 2022-02-04 15:35:52 +01:00
Denis Merigoux
e2f4fb34b8
Fix nix 2022-01-26 18:09:39 +01:00
Alain
52aae25b95 bump version 2021-12-01 15:57:32 +01:00
Denis Merigoux
e0c01dd396
Remove newline 2021-11-12 10:13:11 +01:00
Denis Merigoux
29f12aa3cb
Building a JS version of the Catala compiler 2021-11-12 10:07:13 +01:00
Alain
bba896c949 style: Formatting 2021-10-29 15:17:26 +02:00
Alain
cfcc454022 feat: initial nix support 2021-10-29 14:45:05 +02:00