18 lines
615 B
OCaml
18 lines
615 B
OCaml
type value =
|
|
| WUnit
|
|
| WInt of int
|
|
| WBool of bool
|
|
| WString of string
|
|
| WTuple of value list
|
|
| WRecord of (string * value) list
|
|
| WCollection of (int * value) list
|
|
|
|
type op = WInsert of int * value | WRemove of int | WReplace of int * value
|
|
|
|
val to_string : value -> string
|
|
val field_value : string -> (string * value) list -> value Delta_runtime.outcome
|
|
val parse_value : string -> value Delta_runtime.outcome
|
|
val parse_input : string -> (int * value) list Delta_runtime.outcome
|
|
val parse_updates : string -> op list list Delta_runtime.outcome
|
|
val read_file : string -> string Delta_runtime.outcome
|