Source

ocaml-bert / bert.mli

Full commit
type erlterm =
    Int of int
  | Float of float
      (*  | Atom of string *) 
  | Tuple of erlterm list (* type of tuple is different btw Erlang and OCaml *)
  | List of erlterm list 
  | String of string
  | Binary of string
  | None;;

type result = 
  | Ok of erlterm * string
  | More of int
  | None;;

val decode_binary : string -> result
val print_erlterm : erlterm -> unit
  
exception Not_supported;;
exception Unknown_type;;