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.10.0.tar.gz
md5=5abd76e8c51a47670645e91b21b57fc5
sha512=9c6fbe50c0b5a60566e877eeddadca0a339e2ce35deb5c1beceb03bc40eb6af2d519313e71859d88645b53fad591d4fa5288c633b185c9d765603da0f5b7dd7b

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

Module Catala_utils.UidSource

Global identifiers factories using a generative functor

Sourcemodule type Info = sig ... end

The information carried in global identifiers

Sourcemodule MarkedString : Info with type info = string Mark.pos

The only kind of information carried in Catala identifiers is the original string of the identifier annotated with the position where it is declared or used.

Sourcemodule type Id = sig ... end

Identifiers have abstract types, but are comparable so they can be used as keys in maps or sets. Their underlying information can be retrieved at any time.

Sourcemodule type Style = sig ... end

Used to define a consistent specific style when printing the different kinds of uids

Sourcemodule Make (X : Info) (_ : Style) () : Id with type info = X.info

This is the generative functor that ensures that two modules resulting from two different calls to Make will be viewed as different types t by the OCaml typechecker. Prevents mixing up different sorts of identifiers.

Sourcemodule Gen (_ : Style) () : Id with type info = MarkedString.info

Shortcut for creating a kind of uids over marked strings

Handling of Uids with additional path information

Sourcemodule Module : Id with type info = MarkedString.info
Sourcemodule Path : sig ... end
Sourcemodule Gen_qualified (_ : Style) () : sig ... end

Same as Gen but also registers path information

OCaml

Innovation. Community. Security.