Commit Graph

647 Commits

Author SHA1 Message Date
Aymeric Fromherz
fec4334b49 Allow fully qualified enum names in matches 2021-01-26 11:41:20 -05:00
Aymeric Fromherz
2e71cc503c Fix typo in grammar 2021-01-26 10:47:48 -05:00
Aymeric Fromherz
f154ec15ad Add support for fully qualified enum elements 2021-01-26 10:38:10 -05:00
Aymeric Fromherz
e1ac9564c2 Add a few tests for fully qualified struct accesses 2021-01-25 23:08:30 -05:00
Aymeric Fromherz
f90db72c25 Handle fully qualified struct accesses during desugaring 2021-01-25 23:07:12 -05:00
Aymeric Fromherz
b10e93fc5f Add syntax for enum/struct constructors to AST and parser (doing nothing with them yet) 2021-01-25 22:32:31 -05:00
Aymeric Fromherz
ec1695e41e Add failing test for ambiguous struct fields 2021-01-25 22:31:48 -05:00
Denis Merigoux
5973c677cf
Merge pull request #72 from R1kM/master
Better structure for the testing framework
2021-01-25 09:30:56 +01:00
Aymeric Fromherz
736f74d4f0 README 2021-01-25 01:17:43 -05:00
Aymeric Fromherz
ba03d2db78 Move tests to appropriate folders 2021-01-25 01:16:46 -05:00
Aymeric Fromherz
2bc56f5c92 Modify Makefile to have output folder in subdirectory of good or bad 2021-01-25 01:09:51 -05:00
Aymeric Fromherz
7838f22a1d Merge remote-tracking branch 'upstream/master' 2021-01-25 00:51:39 -05:00
Denis Merigoux
e6c6ccbb02 Autoformat 2021-01-24 14:32:41 +01:00
Aymeric Fromherz
e63bdf0634 More precise pattern matching when looking for source file in test framework 2021-01-23 20:57:31 -05:00
Aymeric Fromherz
5823c2ec3f update test README 2021-01-23 20:51:30 -05:00
Aymeric Fromherz
483400ea19 Move tests to their appropriate directory 2021-01-23 20:49:17 -05:00
Aymeric Fromherz
20d4a8ed6f Change tests Makefile to separate between good and bad tests 2021-01-23 20:26:10 -05:00
Denis Merigoux
ffb76d9dc1
Merge pull request #71 from R1kM/master
Improve unlabeled exceptions, and use them in US tax code and allocations familiales examples
2021-01-22 10:02:38 +01:00
Aymeric Fromherz
d856f2de72 Remove labels and named exceptions in allocations_familiales when possible 2021-01-21 23:56:36 -05:00
Aymeric Fromherz
78b4eb7ce1 Use unlabeled exceptions in US tax code 2021-01-21 23:49:43 -05:00
Aymeric Fromherz
339b6174d2 Add test for unlabeled exceptions in different code blocks 2021-01-21 23:48:08 -05:00
Aymeric Fromherz
216bd87991 Improve unlabeled exceptions: Default definitions and unlabeled exceptions in the same scope can now be defined in different code blocks 2021-01-21 23:47:48 -05:00
Denis Merigoux
492683a000
Merge pull request #69 from CatalaLang/visitors_and_positions
Visitors and positions
2021-01-21 21:37:45 +01:00
Denis Merigoux
9f23bfc8ae Refactoring 2021-01-21 21:33:04 +01:00
Denis Merigoux
d486494177 Merge branch 'master' into visitors_and_positions 2021-01-21 21:10:22 +01:00
Denis Merigoux
aca3dd428c
Merge pull request #70 from R1kM/master
Add syntactic sugar for unlabeled exceptions. Fixes #59
2021-01-21 20:12:30 +01:00
Aymeric Fromherz
888f695b75 Surface desugaring: Refactor rule_to_def into its own function 2021-01-21 13:58:15 -05:00
Aymeric Fromherz
944c6d64a3 Better datatype for exceptions in surface AST 2021-01-21 13:53:25 -05:00
Aymeric Fromherz
6f64e4411e Add tests for unlabeled exceptions + better error message when there is no default definition 2021-01-21 00:15:37 -05:00
Aymeric Fromherz
4a4b156f81 Add support for unlabeled exceptions when unambigous 2021-01-21 00:07:09 -05:00
Aymeric Fromherz
a34286ffc3 Add unnamed exceptions to AST and parser 2021-01-20 21:48:10 -05:00
Denis Merigoux
37bbbad9db Added iter visitor 2021-01-21 00:14:23 +01:00
Denis Merigoux
c67857700a Now logging function applications 2021-01-20 23:29:50 +01:00
Denis Merigoux
3e57fe0276 Enhanced log with explanations of which definition is taken 2021-01-20 19:58:48 +01:00
Denis Merigoux
4d1d3a2e1c Reset tests 2021-01-20 19:21:02 +01:00
Denis Merigoux
85ef15ec09 Printing correct position information inside law 2021-01-20 19:19:17 +01:00
Denis Merigoux
a9d415b7b9 Added map visitors to surface AST 2021-01-20 16:27:39 +01:00
Denis Merigoux
4d7cea397a Add section list to position 2021-01-20 15:37:20 +01:00
Denis Merigoux
19a6a171bd Fixes #65 2021-01-18 16:21:55 +01:00
Denis Merigoux
a6338c3a9c Typos 2021-01-16 18:06:22 +01:00
Denis Merigoux
0f2937f37c Fixed date algorithm once and for all in Section121? 2021-01-16 17:23:02 +01:00
Denis Merigoux
d6426a57e5 Introduced error for experiment purposes 2021-01-15 10:42:09 +01:00
Denis Merigoux
d68d5f8018 copy/paste was too quick 2021-01-14 13:33:44 +01:00
Denis Merigoux
7ee3c62169 Precisions for French example 2021-01-14 13:25:42 +01:00
Denis Merigoux
c562cc25be Fixed date/month US inversion 2021-01-14 13:13:32 +01:00
Denis Merigoux
852a6412eb Changed odate to calendarLib 2021-01-14 13:04:15 +01:00
Denis Merigoux
236c421eea Improvements for allocations familiales 2021-01-14 11:18:04 +01:00
Denis Merigoux
74647799f6 Merge branch 'master' of github.com:CatalaLang/catala 2021-01-14 00:17:42 +01:00
Denis Merigoux
267baea28d Fixes #58 2021-01-14 00:17:24 +01:00
Denis Merigoux
a7d1072339
Merge pull request #67 from jemsab/cgi-article-4a
Add legislative text
2021-01-13 19:38:41 +01:00