package catala

  1. Overview
  2. Docs
Compiler and library for the literate programming language for tax code specification

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=42196e9a9c5e12839b38cb3da935f10c
sha512=ede2d8c17dcb936c1c8c596f1453bf89370a2f824a190efe74e438d7d7f7f83875c1ecbc18219c6a8a3e98b3ab4da1c3a6cc4e534687dbc90f3dca8230f43f7b

doc/catala.catala_utils/Catala_utils/Mark/index.html

Module Catala_utils.MarkSource

AST node annotations (used for position, type, etc.)

Sourcetype ('a, 'm) ed = 'a * 'm

The type of Mark.ed values. Everything related to the source code should keep at least its position stored, to improve error messages. Typing, etc. also leverage this.

Sourcetype 'a pos = ('a, Pos.t) ed

The type of marks containing only position information

Sourceval add : 'm -> 'a -> ('a, 'm) ed
Sourceval remove : ('a, 'm) ed -> 'a
Sourceval get : ('a, 'm) ed -> 'm
Sourceval ghost : 'a -> 'a pos
Sourceval set : 'm -> ('a, _) ed -> ('a, 'm) ed
Sourceval map : ('a -> 'b) -> ('a, 'm) ed -> ('b, 'm) ed
Sourceval map_mark : ('m1 -> 'm2) -> ('a, 'm1) ed -> ('a, 'm2) ed
Sourceval copy : ('b, 'm) ed -> 'a -> ('a, 'm) ed
Sourceval fold : ('a -> 'b) -> ('a, _) ed -> 'b
Sourceval fold2 : ('a -> 'a -> 'b) -> ('a, 'm) ed -> ('a, 'm) ed -> 'b
Sourceval compare : ('a -> 'a -> int) -> ('a, 'm) ed -> ('a, 'm) ed -> int

Compares two marked values ignoring marks

Sourceval equal : ('a -> 'a -> bool) -> ('a, 'm) ed -> ('a, 'm) ed -> bool

Tests equality of two marked values ignoring marks

Sourceval hash : ('a -> Hash.t) -> ('a, 'm) ed -> Hash.t

Computes the hash of the marked values using the given function ignoring mark