Module Literal.VAL

Representation of basic COBOL values.

`*_of_strings?` functions may raise INVALID_CHARS.

exception INVALID_CHARS of (int * char) NEL.t
val invalid_chars : (string * int * (char -> bool)) list -> 'a
val non_digit : char -> bool
val non_bool_bit : base:[> `Hex ] -> char -> bool
type integer = Z.t
val integer_zero : Z.t
val pp_integer : Stdlib.Format.formatter -> Z.t -> unit
val integer_of_string : string -> Z.t
type fixed = Q.t
val fixed_zero : Q.t
val pp_fixed : Stdlib.Format.formatter -> Q.t -> unit
val fixed_of_string : string -> Q.t
val fixed_of_strings : integral:string -> fractional:string -> Q.t
type floating = {
  1. float_significand : fixed;
  2. float_exponent : int;
}
val floating_zero : floating
val pp_floating : Stdlib.Format.formatter -> floating -> unit
val floating_of_strings : integral:string -> fractional:string -> exponent:string -> floating
type alphanum = string
val pp_alphanum : Ppx_deriving_runtime.Format.formatter -> alphanum -> Ppx_deriving_runtime.unit
val show_alphanum : alphanum -> Ppx_deriving_runtime.string
type boolean = {
  1. bool_width : int;
    (*

    may be 0

    *)
  2. bool_value : Z.t;
    (*

    irrelevant if 0-width

    *)
}
val pp_boolean : Ppx_deriving_runtime.Format.formatter -> boolean -> Ppx_deriving_runtime.unit
val show_boolean : boolean -> Ppx_deriving_runtime.string
val boolean_zero : boolean
val boolean_of_string : ?base:[ `Bool | `Hex ] -> string -> boolean