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
- Scan
Result - Span
- Original UTF-8 byte offsets, including a leading BOM if one was supplied.
- Stream
Parser - Collects a streamed source and parses it once, when
finishis called. Bytes beyond the mode’s size limit, plus a three-byte margin for a split UTF-8 character, are counted but not kept.finishthen 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§
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
tokenargument 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