package wcs-lib

  1. Overview
  2. Docs

JSON with embedded expressions.

type json_spel = [
  1. | `Assoc of (string * json_spel) list
  2. | `Bool of bool
  3. | `Float of float
  4. | `Int of int
  5. | `List of json_spel list
  6. | `Null
  7. | `Expr of Spel_t.expression
]

JSON with embedded expressions.

json/json_spel conversion

All these functions represents Spel expressions as string in the concret syntax of Spel, not the AST as JSON.

val yojson_of_json_spel : json_spel -> Json_t.basic
val json_spel_of_yojson : Json_t.basic -> json_spel
val write_json_spel : Json_t.bi_outbuf_t -> json_spel -> unit
val read_json_spel : Json_t.lexer_state -> Lexing.lexbuf -> json_spel
val to_string : json_spel -> string