Module value

Types

Value = ref object
  case kind: Kind
  of typString: oString: string
  of typFloat: oFloat: float64
  of typInt: oInt: int
  of typStrings: nString: seq[string]
  of typFloats: nFloat: seq[float64]
  of typInts: nInt: seq[int]
  of typNone: xNone: bool
  of typBool: xBool: bool
  
a value in the info field

Procs

proc asString(a: Value): Option[string] {.
raises: [], tags: []
.}
proc asInt(a: Value): Option[int] {.
raises: [], tags: []
.}
proc asFloat(a: Value): Option[float64] {.
raises: [], tags: []
.}
proc asBool(a: Value): Option[bool] {.
raises: [], tags: []
.}
proc asStrings(a: Value): Option[seq[string]] {.
raises: [], tags: []
.}
proc asInts(a: Value): Option[seq[int]] {.
raises: [], tags: []
.}
proc asFloats(a: Value): Option[seq[float64]] {.
raises: [], tags: []
.}