package cosovo

  1. Overview
  2. Docs

Module Cosovo.IOSource

Sourcetype error_location = {
  1. e_line_number : int;
  2. e_start : int;
  3. e_end : int;
}
Sourceval string_of_error_location : error_location -> string
Sourcetype error = [
  1. | `SyntaxError of error_location
  2. | `UnterminatedString of int
  3. | `IntOverflow of int * string
]
Sourceval string_of_error : error -> string
Sourcetype value = [
  1. | `Int of int
  2. | `Float of float
  3. | `String of string
]
Sourcetype dense = value list
Sourcetype sparse = (int * value) list
Sourcetype row = [
  1. | `Sparse of sparse
  2. | `Dense of dense
]
Sourcetype row_or_error = (row, error) result
Sourcetype header = [
  1. | `Sparse of (int * string) list
  2. | `Dense of string list
]
Sourcetype row_seq = row_or_error Seq.t
Sourceval of_channel : no_header:bool -> in_channel -> (header option * row_seq, error) result
Sourceval row_of_string : string -> (row, [ error | `EOF ]) result