Liking cljdoc? Tell your friends :D

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

advance-cursorclj/s

(advance-cursor cursor)
(advance-cursor cursor n)

Advance cursor by n positions (default: 1).

Advance cursor by n positions (default: 1).
sourceraw docstring

at-end?clj/s

(at-end? cursor)

Check if cursor is at end of lines.

Check if cursor is at end of lines.
sourceraw docstring

blank-line-infoclj/s

(blank-line-info line-number indent depth)

Create blank line info record.

Create blank line info record.
sourceraw docstring

create-cursorclj/s

(create-cursor lines blank-lines)

Create a cursor from lines and blank-lines vectors.

Create a cursor from lines and blank-lines vectors.
sourceraw docstring

cursor-from-scan-resultclj/s

(cursor-from-scan-result {:keys [lines blank-lines]})

Create a cursor from a scan result.

Create a cursor from a scan result.
sourceraw docstring

get-blank-lines-in-rangeclj/s

(get-blank-lines-in-range cursor start end)

Get blank lines within line number range [start, end].

Get blank lines within line number range [start, end].
sourceraw docstring

has-more-at-depth?clj/s

(has-more-at-depth? cursor target-depth)

Check if there are more lines at target depth.

Check if there are more lines at target depth.
sourceraw docstring

next-cursorclj/s

(next-cursor cursor)

Get current line and advance cursor. Returns [line new-cursor].

Get current line and advance cursor. Returns [line new-cursor].
sourceraw docstring

parsed-lineclj/s

(parsed-line raw depth indent content line-number)

Create a parsed line record.

Create a parsed line record.
sourceraw docstring

peek-at-depthclj/s

(peek-at-depth cursor target-depth)

Get current line if it matches target depth.

Get current line if it matches target depth.
sourceraw docstring

peek-cursorclj/s

(peek-cursor cursor)

Get current line without advancing.

Get current line without advancing.
sourceraw docstring

scan-resultclj/s

(scan-result lines blank-lines)

Create scan result containing lines and blank lines.

Create scan result containing lines and blank lines.
sourceraw docstring

to-parsed-linesclj/s

(to-parsed-lines input)
(to-parsed-lines input indent-size)
(to-parsed-lines input indent-size strict)

Parse TOON text into structured lines.

Parameters:

  • input: TOON text string
  • indent-size: Spaces per indent level (default: 2)
  • strict: Enable strict validation (default: true)

Returns: ScanResult with {:lines, :blank-lines}

Parse TOON text into structured lines.

Parameters:
  - input: TOON text string
  - indent-size: Spaces per indent level (default: 2)
  - strict: Enable strict validation (default: true)

Returns:
  ScanResult with {:lines, :blank-lines}
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