package catala

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

Formats a lambda calculus program into a valid OCaml program

val avoid_keywords : string -> string
val typ_needs_parens : Dcalc.Ast.typ Utils.Marked.pos -> bool
val needs_parens : 'm Ast.marked_expr -> bool
val format_enum_name : Stdlib.Format.formatter -> Dcalc.Ast.EnumName.t -> unit
val format_enum_cons_name : Stdlib.Format.formatter -> Dcalc.Ast.EnumConstructor.t -> unit
val format_struct_name : Stdlib.Format.formatter -> Dcalc.Ast.StructName.t -> unit
val format_struct_field_name : Stdlib.Format.formatter -> (Dcalc.Ast.StructName.t option * Dcalc.Ast.StructFieldName.t) -> unit
val format_to_module_name : Stdlib.Format.formatter -> [< `Ename of Dcalc.Ast.EnumName.t | `Sname of Dcalc.Ast.StructName.t ] -> unit
val format_lit : Stdlib.Format.formatter -> Ast.lit Utils.Marked.pos -> unit
val format_uid_list : Stdlib.Format.formatter -> Utils.Uid.MarkedString.info list -> unit
val format_var : Stdlib.Format.formatter -> 'm Ast.var -> unit
val format_program : Stdlib.Format.formatter -> 'm Ast.program -> Scopelang.Dependency.TVertex.t list -> unit

Usage format_program fmt p type_dependencies_ordering

OCaml

Innovation. Community. Security.