Commit Graph

1114 Commits

Author SHA1 Message Date
Denis Merigoux
c138451146
Merge branch 'master' of github.com:CatalaLang/catala 2021-05-15 01:17:47 +02:00
Denis Merigoux
3c8d187be0
Big refactoring of the literate programming structure
Partially fixes #120
Removes the distinction between headers and articles, streamlines the surface AST
Changes affects lexers and parser
2021-05-15 01:16:08 +02:00
Denis Merigoux
147e35083e
Point directly to executable instead of dune exec 2021-05-14 18:44:06 +02:00
Bartosz Woźniak
fec6c2b145 fix typo, issue with 0.something% still exists 2021-05-13 22:25:17 +02:00
Bartosz Woźniak
7e31b230d0 add p. 9 but why is the test failing? 0.1% * 1000 == 1, not 10 2021-05-13 22:22:49 +02:00
Bartosz Woźniak
f5a070f5a3 add p.7 2021-05-13 22:16:48 +02:00
Bartosz Woźniak
6afdca09b8 rename var 2021-05-13 22:02:52 +02:00
Bartosz Woźniak
8f4b4a0462 extract intro 2021-05-13 14:08:23 +02:00
Bartosz Woźniak
95cd634bd8 add makefile targets 2021-05-13 14:01:34 +02:00
Denis Merigoux
6bdf4243bc
Correct lexing of Polish money amounts 2021-05-13 10:22:21 +02:00
Denis Merigoux
da363d8e75 Fixed Iro files 2021-05-13 10:12:00 +02:00
Bartosz Woźniak
702b2c0134 rephrasing 2021-05-12 20:56:07 +02:00
Bartosz Woźniak
cc2ec3d613 change currency 2021-05-12 19:50:47 +02:00
Bartosz Woźniak
f66fdf2a5c extend comment 2021-05-12 19:43:31 +02:00
Bartosz Woźniak
f70e3e4296 change 'zawartosc' which means 'content' to 'typu' which means 'of the type..' 2021-05-12 19:42:40 +02:00
Bartosz Woźniak
c4e39f159f change condition ('warunek' - boolean) from green to red in pdf 2021-05-12 19:40:19 +02:00
Bartosz Woźniak
03f6e412d9 add text's whole title - https://isap.sejm.gov.pl/isap.nsf/download.xsp/WDU20000860959/U/D20000959Lj.pdf 2021-05-12 18:56:14 +02:00
Bartosz Woźniak
219293baa7 ## headers, eng->pl fix 2021-05-12 18:54:09 +02:00
Denis Merigoux
8dddd3b449
Merge pull request #119 from CatalaLang/dependabot/npm_and_yarn/french_law_js/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21 in /french_law_js
2021-05-12 11:03:13 +02:00
Denis Merigoux
4f9b0d63fd Fix PL pygmentz lexer and document formatting 2021-05-12 10:43:42 +02:00
dependabot[bot]
a786ebcb1d
Bump lodash from 4.17.20 to 4.17.21 in /french_law_js
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 00:07:18 +00:00
Bartosz Woźniak
d61926c51b cleanup 2021-05-11 20:37:35 +02:00
Bartosz Woźniak
f5234c6bdf convert metadata stuff 2021-05-11 20:35:35 +02:00
Bartosz Woźniak
962d5d2f82 compilation fixes 2021-05-11 20:26:17 +02:00
Bartosz Woźniak
21584e6444 polish syntax pygments 2021-05-10 19:05:18 +02:00
Bartosz Woźniak
c9876cd077 cleanup 2021-05-09 23:26:24 +02:00
Bartosz Woźniak
f2055d67ac tests 2021-05-09 23:15:19 +02:00
Bartosz Woźniak
e4bc4c3c8f swap english -> polish 2021-05-09 23:06:59 +02:00
Bartosz Woźniak
db46b1c444 lexer 2021-05-09 23:01:38 +02:00
Bartosz Woźniak
37c8f8da64 fixes for pdf, cleanup 2021-05-09 17:10:26 +02:00
Bartosz Woźniak
3323f47a94 add beginning of polish civil law tax 2021-05-08 17:38:52 +02:00
Denis Merigoux
fa05ac4882
Merge pull request #116 from mr-infty/typo
Fixed typo.
2021-05-06 18:20:30 +02:00
Nicolas Alexander Schmidt
ea734671e2
Fixed typo. 2021-05-06 18:11:19 +02:00
Denis Merigoux
8ab7362793
Update syntax guide recommendation 2021-05-04 17:53:31 +02:00
Denis Merigoux
144046b9c5
Merge pull request #111 from AltGr/localised-builtins
Remove parser tokens for builtin functions
2021-05-04 17:53:03 +02:00
Louis Gesbert
95ea020ff2 Remove surface/ast.mli
The visitor library [doesn't support generating
interfaces](http://gallium.inria.fr/~fpottier/visitors/manual.pdf#subsection.2.4);
keeping the mli isn't really a great idea either because, while we could
generate it once, updating it on every AST change is too cumbersome.

This also moves the few doc comments back to the .ml file.
2021-05-03 18:13:30 +02:00
Louis Gesbert
c5a9800ca8 Add a tiny guide on adding new builtins 2021-05-03 17:44:37 +02:00
Louis Gesbert
6d9cea6943 No need for first-class modules 2021-05-03 17:06:08 +02:00
Louis Gesbert
1e6eb9e6b4 Fix parser for builtins
Oops ;)
2021-04-30 19:14:51 +02:00
Louis Gesbert
a1468e3cde Parser: fail on use of builtin as ident
This doesn't feel completely satisfying, maybe the localisation definition
should directly extend the parser to make that detection part of the state
machine, but this complexifies the parser definitions a lot.

Or the check could be done during typing, but meh. Maybe this one is a good
compromise...
2021-04-30 18:58:02 +02:00
Louis Gesbert
7e9ec54947 Pass the localised builtins as parameters to the parser 2021-04-30 18:58:02 +02:00
Louis Gesbert
6ca3b2f18a Separate token definitions from the parser 2021-04-30 18:58:02 +02:00
Louis Gesbert
b79eb11c7f Factorise the localised lexers interfaces 2021-04-30 18:58:02 +02:00
Denis Merigoux
d69f1a4a39
Fixes #107 2021-04-29 17:46:56 +02:00
Denis Merigoux
3f5e423e9f Revert to old system... Trying to please dune gods is hard 2021-04-29 17:05:53 +02:00
Denis Merigoux
54a7daa1ab
Added missing dune deps 2021-04-29 16:50:23 +02:00
Denis Merigoux
2333dbdd6f
Merge pull request #110 from CatalaLang/dune_changes
Big dune and published libraries reorganization
2021-04-29 16:36:35 +02:00
Denis Merigoux
bd8a53e26c New attempt 2021-04-29 16:29:59 +02:00
Denis Merigoux
4f2b0e26c9
Typo 2021-04-29 16:23:41 +02:00
Denis Merigoux
7446b1fe57
Reorganized public libraries 2021-04-22 17:57:27 +02:00