Liking cljdoc? Tell your friends :D

com.vadelabs.toon.decode.arrays

Array decoding for TOON format.

Handles inline, tabular, and list array formats.

Array decoding for TOON format.

Handles inline, tabular, and list array formats.
raw docstring

com.vadelabs.toon.decode.decoders

Root dispatchers for TOON format decoding.

This namespace provides the main entry points for decoding TOON content, dispatching to specialized decoders for arrays, objects, and primitives.

Root dispatchers for TOON format decoding.

This namespace provides the main entry points for decoding TOON content,
dispatching to specialized decoders for arrays, objects, and primitives.
raw docstring

com.vadelabs.toon.decode.event-builder

Event-based streaming decoder for TOON format.

Processes TOON lines and emits parse events instead of building complete value trees. Enables memory-efficient processing of large documents.

Event-based streaming decoder for TOON format.

Processes TOON lines and emits parse events instead of building
complete value trees. Enables memory-efficient processing of large documents.
raw docstring

com.vadelabs.toon.decode.events

Event types and utilities for streaming TOON decode.

Events are simple maps with a :type key. Prefer using maps directly:

{:type :start-object} {:type :end-object} {:type :start-array :length 3} {:type :end-array} {:type :key :key "field-name"} {:type :key :key "field-name" :was-quoted true} {:type :primitive :value <value>}

This enables memory-efficient processing of large TOON documents.

Event types and utilities for streaming TOON decode.

Events are simple maps with a :type key. Prefer using maps directly:

  {:type :start-object}
  {:type :end-object}
  {:type :start-array :length 3}
  {:type :end-array}
  {:type :key :key "field-name"}
  {:type :key :key "field-name" :was-quoted true}
  {:type :primitive :value <value>}

This enables memory-efficient processing of large TOON documents.
raw docstring

com.vadelabs.toon.decode.items

List item type detection and decoding for TOON format.

List item type detection and decoding for TOON format.
raw docstring

com.vadelabs.toon.decode.keys

Key manipulation utilities for TOON decoding.

Provides functions to expand dotted keys into nested objects.

Key manipulation utilities for TOON decoding.

Provides functions to expand dotted keys into nested objects.
raw docstring

com.vadelabs.toon.decode.objects

Object (map) decoding for TOON format.

Object (map) decoding for TOON format.
raw docstring

com.vadelabs.toon.decode.parser

Token parsing functions for TOON format.

Parses array headers, delimited values, primitive tokens, and keys.

Token parsing functions for TOON format.

Parses array headers, delimited values, primitive tokens, and keys.
raw docstring

com.vadelabs.toon.decode.scanner

Line scanning and parsing for TOON format.

Converts TOON text into structured line objects with depth tracking. Provides cursor-based navigation for parsing.

Line scanning and parsing for TOON format.

Converts TOON text into structured line objects with depth tracking.
Provides cursor-based navigation for parsing.
raw docstring

com.vadelabs.toon.decode.stream

Streaming decoder for TOON format.

Provides memory-efficient event-based decoding for large TOON documents. Instead of building complete value trees, emits parse events that can be consumed incrementally.

Streaming decoder for TOON format.

Provides memory-efficient event-based decoding for large TOON documents.
Instead of building complete value trees, emits parse events that can be
consumed incrementally.
raw docstring

com.vadelabs.toon.decode.value-builder

Reconstructs values from event streams.

Provides functions to build complete value trees from parse events, enabling reconstruction of the original data structure after streaming decode.

Reconstructs values from event streams.

Provides functions to build complete value trees from parse events,
enabling reconstruction of the original data structure after streaming decode.
raw docstring

com.vadelabs.toon.encode.arrays

Array encoding for TOON format.

Handles encoding of vectors with support for:

  • Inline primitive arrays (key[N]: val1,val2,val3)
  • Tabular arrays of objects (key[N]{col1,col2}: ...)
  • Nested arrays of arrays
Array encoding for TOON format.

Handles encoding of vectors with support for:
- Inline primitive arrays (key[N]: val1,val2,val3)
- Tabular arrays of objects (key[N]{col1,col2}: ...)
- Nested arrays of arrays
raw docstring

com.vadelabs.toon.encode.encoders

Object (map) encoding for TOON format.

Handles encoding of maps with:

  • Simple key-value pairs
  • Nested objects with indentation
  • Arrays as values
  • Key collapsing for nested single-key objects
Object (map) encoding for TOON format.

Handles encoding of maps with:
- Simple key-value pairs
- Nested objects with indentation
- Arrays as values
- Key collapsing for nested single-key objects
raw docstring

com.vadelabs.toon.encode.keys

Key manipulation utilities for TOON encoding.

Provides functions to collapse nested single-key objects into dotted paths.

Key manipulation utilities for TOON encoding.

Provides functions to collapse nested single-key objects into dotted paths.
raw docstring

com.vadelabs.toon.encode.normalize

Data normalization for TOON encoding.

Converts Clojure data structures to JSON-compatible values:

  • Keywords → strings
  • Symbols → strings
  • Sets → vectors
  • Maps with keyword keys → maps with string keys
  • UUIDs → strings
  • Dates/Instants → ISO-8601 strings
  • NaN/Infinity → nil
  • Functions/vars → nil
Data normalization for TOON encoding.

Converts Clojure data structures to JSON-compatible values:
- Keywords → strings
- Symbols → strings
- Sets → vectors
- Maps with keyword keys → maps with string keys
- UUIDs → strings
- Dates/Instants → ISO-8601 strings
- NaN/Infinity → nil
- Functions/vars → nil
raw docstring

com.vadelabs.toon.encode.primitives

Primitive value encoding for TOON format.

Handles encoding of nil, booleans, numbers, and strings.

Primitive value encoding for TOON format.

Handles encoding of nil, booleans, numbers, and strings.
raw docstring

com.vadelabs.toon.encode.writer

Line writer for managing indented TOON output.

The LineWriter handles:

  • Indentation management (configurable spaces per level)
  • Line accumulation
  • Whitespace invariants (no trailing spaces or newlines)
Line writer for managing indented TOON output.

The LineWriter handles:
- Indentation management (configurable spaces per level)
- Line accumulation
- Whitespace invariants (no trailing spaces or newlines)
raw docstring

com.vadelabs.toon.utils

Utility functions for TOON encoding and decoding.

Provides:

  • String search and parsing utilities
  • String escaping/unescaping
  • Value and key quoting logic
Utility functions for TOON encoding and decoding.

Provides:
- String search and parsing utilities
- String escaping/unescaping
- Value and key quoting logic
raw 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