package catala

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.9.0.tar.gz
md5=8f891209d18b6540df9c34b2d1a6a783
sha512=737770b87a057674bceefe77e8526720732552f51f424afcebcb6a628267eab522c4fd993caca1ae8ed7ace65a4a87e485af10c1676e51ca5939509a1b841ac2

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 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

Visitors

Sourceclass 'self marked_map : object ... end
Sourceclass 'self marked_iter : object ... end
Sourceclass 'self pos_map : object ... end
Sourceclass 'self pos_iter : object ... end
OCaml

Innovation. Community. Security.