Liking cljdoc? Tell your friends :D

active.vfei

Encode and decode VFEI messages.

Encode and decode VFEI messages.
raw docstring

ambiguous-fields-values-mpclj

(ambiguous-fields-values-mp AmbigousFieldsValues)

Lens for the mp field from a [[AmbigousFieldsValues]] record. See active.vfei/make-ambiguous-fields-values.

Lens for the `mp` field from a [[AmbigousFieldsValues]] record. See [[active.vfei/make-ambiguous-fields-values]].
sourceraw docstring

ambiguous-fields-values?clj

(ambiguous-fields-values? thing)

Is object a AmbigousFieldsValues record? See active.vfei/make-ambiguous-fields-values.

Is object a `AmbigousFieldsValues` record? See [[active.vfei/make-ambiguous-fields-values]].
sourceraw docstring

array-format-element-formatclj

(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]].
sourceraw docstring

array-format-sizeclj

(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]].
sourceraw docstring

array-format?clj

(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]].
sourceraw docstring

assoc-ambiguousclj

(assoc-ambiguous m k v)
source

data-item->exprclj

(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.
sourceraw docstring

data-item->map-valueclj

(data-item->map-value div)
source

data-item-formatclj

(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]].
sourceraw docstring

data-item-nameclj

(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]].
sourceraw docstring

data-item-valueclj

(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]].
sourceraw docstring

data-item?clj

(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]].
sourceraw docstring

data-items->exprclj

(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.
sourceraw docstring

data-items->mapclj

(data-items->map items)

Convert a list of VFEI data items into a map.

Convert a list of VFEI data items into a map.
sourceraw docstring

decode-vfei-nclj

(decode-vfei-n s)
source

decode-vfei-stringclj

(decode-vfei-string s)

Decode a VFEI-encoded string.

Decode a VFEI-encoded string.
sourceraw docstring

format->exprclj

(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.
sourceraw docstring

list-format-sizeclj

(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]].
sourceraw docstring

list-format?clj

(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]].
sourceraw docstring

make-ambiguous-fields-valuesclj

(make-ambiguous-fields-values mp)

Values (numbered) of ambiguous fields on one level.

Values (numbered) of ambiguous fields on one level.
sourceraw docstring

make-array-formatclj

(make-array-format element-format size)

Make an array format for a VFEI data item.

Make an array format for a VFEI data item.
sourceraw docstring

make-data-itemclj

(make-data-item name format value)

Assert that list length matches format.

Assert that list length matches format.
sourceraw docstring

make-list-formatclj

(make-list-format size)

Make a list format for a VFEI data item.

Make a list format for a VFEI data item.
sourceraw docstring

parse-data-itemclj

(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.
sourceraw docstring

parse-data-item-nameclj

(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.
sourceraw docstring

parse-data-item-valueclj

(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.
sourceraw docstring

parse-format-codeclj

(parse-format-code s)

Parse a VFEI format code, returning it and the rest.

Parse a VFEI format code, returning it and the rest.
sourceraw docstring

parse-sizeclj

(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.
sourceraw docstring

parse-vfeiclj

(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.
sourceraw docstring

really-make-data-itemclj

(really-make-data-item name format value)

Make a VFEI data item.

Make a VFEI data item.
sourceraw docstring

skip-whitespaceclj

(skip-whitespace s)
source

value->exprclj

(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.
sourceraw docstring

vfei->mapclj

(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. Values of ambiguous fields on one level yield a map with numbers as keys and values of the ambiguous fields as the values to the numbered keys.

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.
Values of ambiguous fields on one level yield a map with numbers as keys and
values of the ambiguous fields as the values to the numbered keys.
sourceraw docstring

vfei-encode-charclj

(vfei-encode-char c)

Encode a character in VFEI format.

Encode a character in VFEI format.
sourceraw docstring

vfei-encode-stringclj

(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.
sourceraw docstring

zipmap-ambiguousclj

(zipmap-ambiguous keys vals)

Returns a map with the keys mapped to the corresponding vals. Ambigous keys yield a map with numbered values.

Returns a map with the keys mapped to the corresponding vals.
Ambigous keys yield a map with numbered values.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close