Encode and decode VFEI messages.
Encode and decode VFEI messages.
(array-format-element-format ArrayFormat)
Lens for the element-format
field from a [[ArrayFormat]] record. See active.vfei/make-array-format
.
Lens for the `element-format` field from a [[ArrayFormat]] record. See [[active.vfei/make-array-format]].
(array-format-size ArrayFormat)
Lens for the size
field from a [[ArrayFormat]] record. See active.vfei/make-array-format
.
Lens for the `size` field from a [[ArrayFormat]] record. See [[active.vfei/make-array-format]].
(array-format? thing)
Is object a ArrayFormat
record? See active.vfei/make-array-format
.
Is object a `ArrayFormat` record? See [[active.vfei/make-array-format]].
(data-item->expr di)
Convert a data item to a Clojure expression that generates it.
For generating tests.
Convert a data item to a Clojure expression that generates it. For generating tests.
(data-item-format DataItem)
Lens for the format
field from a [[DataItem]] record. See active.vfei/really-make-data-item
.
Lens for the `format` field from a [[DataItem]] record. See [[active.vfei/really-make-data-item]].
(data-item-name DataItem)
Lens for the name
field from a [[DataItem]] record. See active.vfei/really-make-data-item
.
Lens for the `name` field from a [[DataItem]] record. See [[active.vfei/really-make-data-item]].
(data-item-value DataItem)
Lens for the value
field from a [[DataItem]] record. See active.vfei/really-make-data-item
.
Lens for the `value` field from a [[DataItem]] record. See [[active.vfei/really-make-data-item]].
(data-item? thing)
Is object a DataItem
record? See active.vfei/really-make-data-item
.
Is object a `DataItem` record? See [[active.vfei/really-make-data-item]].
(data-items->expr sq)
Convert a seq of data items to a Clojure expression that generates it.
For generating tests.
Convert a seq of data items to a Clojure expression that generates it. For generating tests.
(data-items->map items)
Convert a list of VFEI data items into a map.
Convert a list of VFEI data items into a map.
(decode-vfei-string s)
Decode a VFEI-encoded string.
Decode a VFEI-encoded string.
(format->expr f)
Convert a format to a Clojure expression that generates it.
For generating tests.
Convert a format to a Clojure expression that generates it. For generating tests.
(list-format-size ListFormat)
Lens for the size
field from a [[ListFormat]] record. See active.vfei/make-list-format
.
Lens for the `size` field from a [[ListFormat]] record. See [[active.vfei/make-list-format]].
(list-format? thing)
Is object a ListFormat
record? See active.vfei/make-list-format
.
Is object a `ListFormat` record? See [[active.vfei/make-list-format]].
(make-array-format element-format size)
Make an array format for a VFEI data item.
Make an array format for a VFEI data item.
(make-data-item name format value)
Assert that list length matches format.
Assert that list length matches format.
(make-list-format size)
Make a list format for a VFEI data item.
Make a list format for a VFEI data item.
(parse-data-item s null-anywhere?)
Parse a VFEI data item, returning it and the rest.
Parse a VFEI data item, returning it and the rest.
(parse-data-item-name s)
Parse the name of a VFEI data item, returning a pair of the name and the rest.
Parse the name of a VFEI data item, returning a pair of the name and the rest.
(parse-data-item-value format null-anywhere? s)
Parse the value of a VFEI data item, given its format, returning it and the rest.
Parse the value of a VFEI data item, given its format, returning it and the rest.
(parse-format-code s)
Parse a VFEI format code, returning it and the rest.
Parse a VFEI format code, returning it and the rest.
(parse-size s)
Parse the size of a list or array item, returning it and the rest.
Parse the size of a list or array item, returning it and the rest.
(parse-vfei s & [null-anywhere?])
Parse a VFEI message, returning a list of data items.
null-anywhere?
says whethere null
(Systema extension) is allowed anywhere
or just for A
, N
, D
, and lists.
Parse a VFEI message, returning a list of data items. `null-anywhere?` says whethere `null` (Systema extension) is allowed anywhere or just for `A`, `N`, `D`, and lists.
(really-make-data-item name format value)
Make a VFEI data item.
Make a VFEI data item.
(value->expr v)
Convert a value to a Clojure expression that generates it.
For generating tests.
Convert a value to a Clojure expression that generates it. For generating tests.
(vfei->map v)
Recursivley convert the result of parse-vfei
to a key-value map.
Warning: This function does not keep the order of the elements in VFEI lists.
Recursivley convert the result of `parse-vfei` to a key-value map. Warning: This function does not keep the order of the elements in VFEI lists.
(vfei-encode-char c)
Encode a character in VFEI format.
Encode a character in VFEI format.
(vfei-encode-string s)
Encode a string as a VFEI style, using C-style escapes.
Encode a string as a VFEI style, using C-style escapes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close