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.shared_ast/Shared_ast/Print/UserFacing/index.html

Module Print.UserFacingSource

User-facing, localised printer

Sourceval lit : Catala_utils.Global.backend_lang -> Format.formatter -> Shared_ast__.Definitions.lit -> unit
Sourceval lit_to_string : Catala_utils.Global.backend_lang -> Shared_ast__.Definitions.lit -> string
Sourceval value : ?fallback: (Format.formatter -> (('a, 'a, 't) Shared_ast__.Definitions.base_gexpr, 't Shared_ast__.Definitions.mark) Catala_utils.Mark.ed -> unit) -> Catala_utils.Global.backend_lang -> Format.formatter -> (('a, 'a, 't) Shared_ast__.Definitions.base_gexpr, 't Shared_ast__.Definitions.mark) Catala_utils.Mark.ed -> unit

Prints a value in a localised format, intended to be read by an end-user.

  • parameter fallback

    is called upon non-value expressions (by default, Invalid_argument is raised)

Sourceval expr : Catala_utils.Global.backend_lang -> Format.formatter -> ((_, _, _) Shared_ast__.Definitions.base_gexpr, _ Shared_ast__.Definitions.mark) Catala_utils.Mark.ed -> unit

This combines the user-facing value printer and the generic expression printer to handle all AST nodes

OCaml

Innovation. Community. Security.