package catala

  1. Overview
  2. Docs
val source_files : string list Stdlib.ref

Ssource files to be compiled

val debug_flag : bool Stdlib.ref

Prints debug information

val style_flag : bool Stdlib.ref
val max_prec_digits : int Stdlib.ref
val trace_flag : bool Stdlib.ref
val file : string Cmdliner.Term.t
val debug : bool Cmdliner.Term.t
val unstyled : bool Cmdliner.Term.t
val trace_opt : bool Cmdliner.Term.t
val wrap_weaved_output : bool Cmdliner.Term.t
val backend : string Cmdliner.Term.t
type backend_option =
  1. | Latex
  2. | Makefile
  3. | Html
  4. | Run
val language : string option Cmdliner.Term.t
val max_prec_digits_opt : int option Cmdliner.Term.t
val ex_scope : string option Cmdliner.Term.t
type frontend_lang = [
  1. | `Fr
  2. | `En
  3. | `NonVerbose
]
type backend_lang = [
  1. | `Fr
  2. | `En
]
val to_backend_lang : frontend_lang -> backend_lang
val output : string option Cmdliner.Term.t
val pygmentize_loc : string option Cmdliner.Term.t
val catala_t : (string -> bool -> bool -> bool -> string option -> string -> string option -> int option -> bool -> string option -> string option -> 'a) -> 'a Cmdliner.Term.t
val info : Cmdliner.Term.info

Terminal formatting

Markers

val print_with_style : ANSITerminal.style list -> ('a, unit, string) Stdlib.format -> 'a
val debug_marker : unit -> string

Prints [DEBUG] in purple on the terminal standard output

val error_marker : unit -> string

Prints [ERROR] in red on the terminal error output

val warning_marker : unit -> string

Prints [WARNING] in yellow on the terminal standard output

val result_marker : unit -> string

Prints [RESULT] in green on the terminal standard output

val log_marker : unit -> string

Prints [LOG] in red on the terminal error output

Printers

All the printers below print their argument after the correct marker

val concat_with_line_depending_prefix_and_suffix : (int -> string) -> (int -> string) -> string list -> string
val add_prefix_to_each_line : string -> (int -> string) -> string

The int argument of the prefix corresponds to the line number, starting at 0

val debug_print : string -> unit
val error_print : string -> unit
val warning_print : string -> unit
val result_print : string -> unit
val log_print : string -> unit
OCaml

Innovation. Community. Security.