Liking cljdoc? Tell your friends :D

com.vadelabs.toon.decode.objects

Object (map) decoding for TOON format.

Object (map) decoding for TOON format.
raw docstring

objectclj/s

(object cursor depth delimiter strict list-item-fn)

Decodes an object from key-value lines at the given depth.

Parameters:

  • cursor: LineCursor
  • depth: Expected depth for key-value lines
  • delimiter: Delimiter for parsing values
  • strict: Enable strict mode
  • list-item-fn: Function to decode list items (for dependency injection)

Returns: [decoded-object, new-cursor]

Decodes an object from key-value lines at the given depth.

Parameters:
  - cursor: LineCursor
  - depth: Expected depth for key-value lines
  - delimiter: Delimiter for parsing values
  - strict: Enable strict mode
  - list-item-fn: Function to decode list items (for dependency injection)

Returns:
  [decoded-object, new-cursor]
sourceraw docstring

object-from-list-itemclj/s

(object-from-list-item line cursor depth delimiter strict list-item-fn)

Decodes an object that starts on a list item line.

Format:

  • first-key: first-value second-key: second-value

The first key-value is on the hyphen line. Remaining key-values are at depth+1.

Parameters:

  • line: ParsedLine with list marker
  • cursor: LineCursor positioned at this line
  • depth: Current list depth
  • delimiter: Delimiter for parsing
  • strict: Enable strict mode
  • list-item-fn: Function to decode list items (for dependency injection)

Returns: [decoded-object, new-cursor]

Decodes an object that starts on a list item line.

Format:
  - first-key: first-value
    second-key: second-value

The first key-value is on the hyphen line.
Remaining key-values are at depth+1.

Parameters:
  - line: ParsedLine with list marker
  - cursor: LineCursor positioned at this line
  - depth: Current list depth
  - delimiter: Delimiter for parsing
  - strict: Enable strict mode
  - list-item-fn: Function to decode list items (for dependency injection)

Returns:
  [decoded-object, new-cursor]
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close