mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
fea01cfe4c
This uses the same disambiguation mechanism put in place for structures, calling the typer on individual rules on the desugared AST to propagate types, in order to resolve ambiguous operators like `+` to their strongly typed counterparts (`+!`, `+.`, `+$`, `+@`, `+$`) in the translation to scopelang. The patch includes some normalisation of the definition of all the operators, and classifies them based on their typing policy instead of their arity. It also adds a little more flexibility: - a couple new operators, like `-` on date and duration - optional type annotation on some aggregation constructions The `Shared_ast` lib is also lightly restructured, with the `Expr` module split into `Type`, `Operator` and `Expr`. |
||
---|---|---|
.. | ||
catala_utils | ||
dcalc | ||
desugared | ||
lcalc | ||
literate | ||
plugins | ||
scalc | ||
scopelang | ||
shared_ast | ||
surface | ||
verification | ||
catala_web_interpreter.ml | ||
catala.ml | ||
driver.ml | ||
driver.mli | ||
dune | ||
index.mld | ||
plugin.ml | ||
plugin.mli |