package lutils

  1. Overview
  2. Docs

Module DataSource

Sourcetype ident = string
Sourcetype v =
  1. | I of int
  2. | F of float
  3. | B of bool
  4. | E of ident * int
  5. | A of v array
  6. | S of (ident * v) list
  7. | U
  8. | Str of string
Sourcetype t =
  1. | Bool
  2. | Int
  3. | Real
  4. | Extern of ident
  5. | Enum of ident * ident list
  6. | Struct of ident * (ident * t) list
  7. | Array of t * int
  8. | Alpha of int
  9. | Alias of string * t
  10. | String
Sourceval val_to_string : (float -> string) -> v -> string
Sourceval val_to_rif_string : (float -> string) -> v -> string
Sourceval val_to_string_type : v -> string
Sourceval type_of_string : string -> t
Sourceval type_to_string : t -> string
Sourceval type_to_string_alias : t -> string

use the alias for aliased types

Sourcetype vntl = (string * t) list
Sourcetype subst = string * v
Sourcetype access =
  1. | Idx of int
  2. | Fld of ident
  3. | Sle of int * int * int * int
Sourceval update_val : v -> v -> access list -> v
Sourceval create_val : t -> v -> access list -> v
OCaml

Innovation. Community. Security.