Skip to main content

Crate cortexkit_rich_ui_syntax

Crate cortexkit_rich_ui_syntax 

Source
Expand description

A bounded syntax front end for rich UI language v1.

Reference discovery walks the returned syntax tree; it never scans strings from data, Markdown destinations, or failed tags a second time.

Structs§

Diagnostic
Document
Node
Prop
Reference
ScanResult
Span
Original UTF-8 byte offsets, including a leading BOM if one was supplied.
StreamParser
Collects a streamed source and parses it once, when finish is called. Bytes beyond the mode’s size limit, plus a three-byte margin for a split UTF-8 character, are counted but not kept. finish then marks the document shortened, and in program mode also refuses it (E_SOURCE_TOO_LARGE, no nodes), so a program is never run from a cut-off prefix. No partial parse is offered while bytes are still arriving.

Enums§

Expression
Kind
Markdown
Mode

Constants§

AST_NODES
BLOCKS
DECLARATIONS
DIAGNOSTICS
DIALECT
Identifies the rich UI source dialect accepted by this parser.
EMPHASIS_DEPTH
EXPRESSION_DEPTH
HANDLES
MARKDOWN_DEPTH
OUTPUT_SCALARS
PROGRAM_BYTES
REFERENCES
REPLY_BYTES
TAG_DEPTH

Functions§

check_token_slot
Checks a token argument slot without trimming, unescaping, or substring search.
parse
parse_bytes
Invalid UTF-8 is replaced before parsing; offsets refer to the repaired text.
scan_references