package lambda-term

  1. Overview
  2. Docs
val of_string : Zed_utf8.t -> t
val to_string : t -> Zed_utf8.t
val of_string_maybe_invalid : string -> t
val of_rope : Zed_rope.t -> t
val to_rope : t -> Zed_rope.t
val stylise : string -> LTerm_style.t -> t
val stylise_parenthesis : t -> ?paren:(CamomileLibrary.UChar.t * CamomileLibrary.UChar.t) list -> int -> LTerm_style.t -> unit
type item =
  1. | S of Zed_utf8.t
  2. | R of Zed_rope.t
  3. | B_bold of bool
  4. | E_bold
  5. | B_underline of bool
  6. | E_underline
  7. | B_reverse of bool
  8. | E_reverse
  9. | B_fg of LTerm_style.color
  10. | E_fg
  11. | B_bg of LTerm_style.color
  12. | E_bg
type markup = item list
val eval : markup -> t
val make_formatter : ?read_color:(Format.tag -> LTerm_style.t) -> unit -> (unit -> t) * Format.formatter
val pp_with_style : (LTerm_style.t -> Format.tag) -> LTerm_style.t -> ('b, Format.formatter, unit, unit) Pervasives.format4 -> Format.formatter -> 'b
val styprintf : ?read_color:(Format.tag -> LTerm_style.t) -> ('a, Format.formatter, unit, t) Pervasives.format4 -> 'a
val kstyprintf : ?read_color:(Format.tag -> LTerm_style.t) -> (t -> 'a) -> ('b, Format.formatter, unit, 'a) Pervasives.format4 -> 'b
OCaml

Innovation. Community. Security.