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.1.0.tar.gz
md5=ec7dda88c5f7f371d2a35874cdae2a10
sha512=7cedccfbe5330992d5730441d6ba7b97446237ff5bb4579498a167f2319ec03e8fae50b7f80e3abe96833744b61ffd10719ce0c3e4c144893a4b7adc77e91b56

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