Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Token
is the formatter token data type.
type t = Token_type.t * string
A token is simply a pair (token type, lexeme).
val space : t
Token representing a single whitespace.
val line_break : t
Token representing a line break. It is useful if you want to have a potential newline if it does not fit in one line.
val comma : t
Token representing a comma.
val colon : t
Token representing a colon.
val number : string -> t
number lexeme
constructs a number literal token.
val format : ?stylizer:Formatting.Stylizer.t -> t -> string