Commit Graph

1190 Commits

Author SHA1 Message Date
EmileRolley
71d92aeef1 feat(compiler): start to add wildcard in patterns 2021-06-03 12:24:12 +02:00
Denis Merigoux
9b16576c5a
Merge pull request #128 from EmileRolley/vim_syntax
feat(syntax_highlighting): add vim syntax files
2021-06-03 09:38:29 +02:00
EmileRolley
f6d3906fe9 Revert "fix(syntax_highlighting): Type to Structure for constructors"
This reverts commit c0cc636372.
2021-06-02 10:57:43 +02:00
EmileRolley
c0cc636372 fix(syntax_highlighting): Type to Structure for constructors 2021-06-02 10:57:24 +02:00
EmileRolley
01daa6e1e1 Revert "fix(syntax_highlighting): Type to Structure for primitive types"
This reverts commit 241ae8f7d3.
2021-06-02 10:38:57 +02:00
EmileRolley
241ae8f7d3 fix(syntax_highlighting): Type to Structure for primitive types 2021-06-02 10:37:13 +02:00
EmileRolley
7921484aee fix(syntax_highlighting): improve floating/money amount mathching in vim syntax files 2021-06-01 11:18:44 +02:00
EmileRolley
ed73be5abf feat(syntax_highlighting): add the catala_pl.vim file 2021-06-01 10:53:49 +02:00
EmileRolley
909f04b8af feat(syntax_highlighting): add the catala_en.vim file 2021-05-31 20:59:56 +02:00
Denis Merigoux
df01733bbd
Typecheck and fix the inheritance tax example 2021-05-31 16:59:43 +02:00
Denis Merigoux
32aa818249
Beginning of succession law 2021-05-31 16:26:41 +02:00
EmileRolley
fa345a9312 fix(syntax_highlighting): minor corrections in catala_fr.vim 2021-05-31 14:43:03 +02:00
EmileRolley
6b63ba02b5 docs(syntax_highlighting): add a link to the vim help page 2021-05-31 14:30:18 +02:00
EmileRolley
a233769e98 feat(syntax_highlighting)!: add the catala_fr.vim file 2021-05-31 14:23:15 +02:00
Denis Merigoux
54c6e63a01
Merge pull request #127 from EmileRolley/operation_division_op
feat(compiler): add the duration division operator
2021-05-31 11:05:16 +02:00
EmileRolley
c718095b2d refactor(compiler): rename operand names according their types 2021-05-31 10:56:13 +02:00
EmileRolley
be90d61dc1 fix(compiler): refactor and fix the duration division operator evaluation 2021-05-31 10:42:20 +02:00
EmileRolley
74bf3cf93d feat(lexer): add the duration division operator for french and polish syntax 2021-05-31 10:26:51 +02:00
EmileRolley
b32f0bf0a4 docs(syntax): add the duration division operator + fix the catala_en syntax highlighting 2021-05-31 10:26:51 +02:00
EmileRolley
4e53358fd6 feat(compiler): add the Runtime.IndivisableDurations exception handling 2021-05-31 10:26:51 +02:00
EmileRolley
1572244e2d fix(tests): add test case for the good utilisation of the duration division operator 2021-05-31 10:26:51 +02:00
EmileRolley
4e84f424eb feat(compiler): start to add the duration division operator 2021-05-31 10:26:51 +02:00
Denis Merigoux
4d168e2f77
Merge pull request #126 from EmileRolley/fix_division_by_zero_exn
fix(compiler): correct the handling of the Division_by_zero exception
2021-05-31 08:59:21 +02:00
EmileRolley
9ac9ed6f1e fix(syntax_highlighting): fix date highlighting 2021-05-30 21:06:32 +02:00
EmileRolley
a450c8f841 fix(syntax_highlighting): fix heading hightlighting 2021-05-30 20:15:37 +02:00
EmileRolley
f907431504 refactor(compiler): factorize the UncomparableDurations exception managment in Dcalc.interpreter + add unit tests 2021-05-29 20:17:22 +02:00
EmileRolley
31f1c13763 fix(compiler)!: fix the Division_by_zero managment in Dcalc.interpreter 2021-05-29 18:56:20 +02:00
EmileRolley
27bd227079 fix(tests): update the .run rule in order to manage all catala file extensions 2021-05-29 18:54:00 +02:00
Denis Merigoux
434f1863c9
Added scopelang prettyprinter
And clarifier intermediate languages debug printing
2021-05-29 14:15:23 +02:00
Denis Merigoux
b1b8129852
Merge pull request #124 from EmileRolley/remove_abbreviated_syntax
refactor!: removes the abbreviated syntax
2021-05-29 12:40:02 +02:00
EmileRolley
f5b3786d2f refactor(syntax_highlighting)!: remove the the syntax highlighting for the abbrevitated syntax 2021-05-29 11:21:35 +02:00
EmileRolley
261b61da6a fix(cli): update the doc message for the --language flag 2021-05-27 19:02:35 +02:00
EmileRolley
71799b9dfc docs: update contributions in file comments 2021-05-27 18:56:47 +02:00
EmileRolley
630750c907 fix(cli): update the doc message for the --language flag 2021-05-27 18:53:30 +02:00
EmileRolley
ec43e82d09 docs(test): update the README.md 2021-05-26 21:57:51 +02:00
EmileRolley
e4d1d5e2e6 refactor(literate): new module Literate_common used to factorize common functions of the Latex and Html modules 2021-05-26 21:39:40 +02:00
EmileRolley
2095ba8860 refactor(compiler)!: merge Cli.frontend_lang and Cli.backend_lang into an unique variant 2021-05-26 21:18:18 +02:00
EmileRolley
0ffbb9b266 refactor(tests)!: migrate test file from the abbreviated syntax to the english one 2021-05-26 21:16:29 +02:00
EmileRolley
75570864d2 fix(tests): update the .in rule fo the Makefile in order to manage all catala extensions 2021-05-26 18:19:33 +02:00
EmileRolley
a1b0601c16 refactor(driver)!: removes the `NonVerbose frontend language 2021-05-26 17:44:57 +02:00
EmileRolley
3772a22822 refactor(lexer)!: removes the abbreviated syntax lexer (lexer.ml) 2021-05-26 17:44:11 +02:00
Denis Merigoux
92b46db2df
Merge pull request #121 from EmileRolley/extends_law_text_accepted_char
feat(compiler): allow to use the grave accent character outside code blocks and add language inference from file extension
2021-05-26 11:38:43 +02:00
EmileRolley
866a29a643 feat(lexer): improve grave accent lexing outside code blocks 2021-05-24 23:04:43 +02:00
EmileRolley
bcb2303b13 docs(lexer): add comments in lex_law 2021-05-24 21:45:38 +02:00
EmileRolley
896d126b70 refactor(driver): use Filename.extension for language inference 2021-05-24 21:02:04 +02:00
EmileRolley
0651957442 fix(driver): add the polish language and factorize with associative lists 2021-05-24 16:24:45 +02:00
EmileRolley
4e168eff64 feat(lexer): update the polish lexer to support grave accent outside code blocks 2021-05-24 16:23:45 +02:00
EmileRolley
9ea9c3809e refactor(driver): factorize the language inference 2021-05-24 15:55:33 +02:00
EmileRolley
95db947899 feat(driver): add language inference from input file extension 2021-05-24 15:54:27 +02:00
EmileRolley
d00ba4740f feat(tests): modify the .out rule of the Makefile in order to manage other input file syntax than the abbrieviated one 2021-05-24 15:54:27 +02:00