package bracetax

  1. Overview
  2. Docs

Module to build tables.

type alignment = [
  1. | `right
  2. | `center
  3. | `left
]
type cell = {
  1. is_head : bool;
  2. cols_used : int;
  3. rows_used : int;
  4. align : alignment;
  5. cell_text : Buffer.t;
}
val default_default_align : alignment
type table = {
  1. col_nb : int;
  2. label : string option;
  3. mutable cells : cell list;
  4. mutable current_cell : cell option;
  5. caption : Buffer.t;
  6. default_align : alignment;
}
val table_args : string list -> int * string option * alignment
val cell_arguments : table -> string list -> bool * int * int * alignment
val write : table -> string -> unit
val start : string list -> table * [> `table of int * string option ] * (string -> unit)
val cell_start : loc:Bracetax_error.location -> error:Bracetax_error.error_fun -> table -> string list -> [> `cell of bool * int * alignment ]
val cell_stop : loc:'a -> error:Bracetax_error.error_fun -> table -> unit
module Util : sig ... end

Utilities for printing tables without too much headache.