package sonet

  1. Overview
  2. Docs
type t =
  1. | Int of int64
  2. | String of string
  3. | List of t list
  4. | Dict of (string * t) list
val string_of_type : t -> string
val is_int : t -> bool
val is_string : t -> bool
val is_dict : t -> bool
val is_list : t -> bool
val is_scalar : t -> bool
val to_int : t -> int64
val to_string : t -> string
val to_list : t -> t list
val to_dict : t -> (string * t) list
type error =
  1. | Unexpected_char of int * char * string option
  2. | Expected_char of int * char * string
  3. | Unterminated_value of int * string
  4. | Invalid_value of int * string
  5. | Empty_string of int
  6. | Invalid_key_type of int * string
  7. | Invalid_string_length of int * string
exception Parse_error of error
val string_of_error : error -> string
val parse : string -> t
val marshal : t -> string
OCaml

Innovation. Community. Security.