package catala
Compiler and library for the literate programming language for tax code specification
Install
Dune Dependency
Authors
Maintainers
Sources
0.10.0.tar.gz
md5=5abd76e8c51a47670645e91b21b57fc5
sha512=9c6fbe50c0b5a60566e877eeddadca0a339e2ce35deb5c1beceb03bc40eb6af2d519313e71859d88645b53fad591d4fa5288c633b185c9d765603da0f5b7dd7b
doc/catala.lcalc/Lcalc/Monomorphize/index.html
Module Lcalc.Monomorphize
Source
Source
val program :
Shared_ast.typed Ast.program ->
Shared_ast.typed Ast.program * Scopelang.Dependency.TVertex.t list
This function performs type monomorphization in a Catala program with two main actions:
- transforms tuples into named structs.
- creates monomorphized instances of
TOption
for every occurence of the type. - creates monomorphized instances of
TArray
for every occurence of the type; each instance is a struct with a integerlength
field and acontent
field whose type still isTArray
.
It also returns the new type ordering for the program.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>