mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
371f9554b8
The primary use-case for this was to be able to run computations on a list of structures, then return an updated list with some fields in the structures modified : that is what we need for distribution of tax amounts among household members, for example. This patch has a few components: - Addition of a test as an example for tax distributions - Added a transformation, performed during desugaring, that -- where lists are syntactically expected, i.e. after the `among` keyword -- turns a (syntactic) tuple of lists into a list of tuples ("zipping" the lists) - Arg-extremum transformation was also fixed to use an intermediate list instead of computing the predicate twice - For convenience, allow to bind multiple variables in most* list operations (previously only `let in` and functions allowed it) - Fixed the printer for tuples to differentiate them from lists *Note: tuples are not yet allowed on the left-hand side of filters and arg-extremums for annoying syntax conflict reasons. |
||
---|---|---|
.. | ||
.ocamlformat-ignore | ||
ast.ml | ||
dune | ||
fill_error_tokens.py | ||
fill_positions.ml | ||
fill_positions.mli | ||
lexer_common.ml | ||
lexer_common.mli | ||
lexer_en.cppo.ml | ||
lexer_en.mli | ||
lexer_fr.cppo.ml | ||
lexer_fr.mli | ||
lexer_pl.cppo.ml | ||
lexer_pl.mli | ||
lexer.cppo.ml | ||
parser_driver.ml | ||
parser_driver.mli | ||
parser_errors.mli | ||
parser.messages | ||
parser.mly | ||
print.ml | ||
print.mli | ||
surface.mld | ||
tokens.mly |