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) are counted but not kept, and finish then marks the document shortened. 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