Source

ocaml-stringpainter / src / Basic.mli

Full commit
(*********************************************************************************************************************
 * Copyrights (C) by
 *  Pawel Wieczorek <wieczyk gmail>
 *
 * http://bitbucket.org/wieczyk/ocaml-stringpainter
 ********************************************************************************************************************)

(**
   This module contains basic painters. They are only usefull for small stuff.
 *)


(** Te type of painter *)
type painter

val is_multiline : painter -> bool

val any_multiline : painter list -> bool

val render_painter : painter -> string

val print_painter : painter -> unit

val print_painter_nl : painter -> unit

val sp_text : string -> painter

val sp_word : string -> painter

val sp_label : string -> painter

val sp_special : string -> painter

val sp_keyword : string -> painter

val sp_value_keyword : string -> painter

val sp_value : string -> painter

val sp_operator : string -> painter

val sp_syntax : string -> painter

val sp_nested : painter list -> painter

val sp_indent : painter list -> painter

val sp_break : painter

val sp_newline : painter

val sp_indent_when_multiline : painter list -> painter

val sp_value_int : int -> painter

val sp_value_bool : bool -> painter

val sp_list : painter -> painter -> painter -> painter list -> painter

val sp_opening_square_bracket : painter

val sp_closing_square_bracket : painter

val sp_opening_bracket : painter

val sp_coma : painter

val sp_semicolon : painter

val sp_closing_bracket : painter

val sp_std_list : painter list -> painter

val sp_ml_list : painter list -> painter