package catala

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Printing functions for the default calculus AST

Common syntax highlighting helpers

val format_base_type : Stdlib.Format.formatter -> string -> unit
val format_keyword : Stdlib.Format.formatter -> string -> unit
val format_punctuation : Stdlib.Format.formatter -> string -> unit
val format_operator : Stdlib.Format.formatter -> string -> unit
val format_lit_style : Stdlib.Format.formatter -> string -> unit

Formatters

val format_uid_list : Stdlib.Format.formatter -> Utils.Uid.MarkedString.info list -> unit
val format_enum_constructor : Stdlib.Format.formatter -> Ast.EnumConstructor.t -> unit
val format_tlit : Stdlib.Format.formatter -> Ast.typ_lit -> unit
val format_typ : Ast.decl_ctx -> Stdlib.Format.formatter -> Ast.typ -> unit
val format_lit : Stdlib.Format.formatter -> Ast.lit -> unit
val format_op_kind : Stdlib.Format.formatter -> Ast.op_kind -> unit
val format_binop : Stdlib.Format.formatter -> Ast.binop -> unit
val format_ternop : Stdlib.Format.formatter -> Ast.ternop -> unit
val format_log_entry : Stdlib.Format.formatter -> Ast.log_entry -> unit
val format_unop : Stdlib.Format.formatter -> Ast.unop -> unit
val format_var : Stdlib.Format.formatter -> 'm Ast.var -> unit
val format_expr : ?debug:bool -> Ast.decl_ctx -> Stdlib.Format.formatter -> 'm Ast.marked_expr -> unit
val format_scope : ?debug:bool -> Ast.decl_ctx -> Stdlib.Format.formatter -> (Ast.ScopeName.t * ('m Ast.expr, 'm) Ast.scope_body) -> unit
OCaml

Innovation. Community. Security.