package catala

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

Printing functions for the default calculus AST

Helpers

val is_uppercase : CamomileLibraryDefault.Camomile.UChar.t -> bool
val begins_with_uppercase : string -> bool

Common syntax highlighting helpers

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

Formatters

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