Expand description
Parsing pipeline for supersigil spec documents.
Documents use standard Markdown with supersigil-xml fenced code blocks
for component markup.
Modules§
- util
- Shared utility functions used across parser stages. Shared utility functions for the parser crate.
Structs§
- Markdown
Fences - Collected fences from Markdown parsing.
- Recovered
Parse - A recovered parse result that may include a partial document alongside fatal validation errors.
- XmlFence
- A fenced code block with language
supersigil-xml.
Enums§
- Front
Matter Result - Result of deserializing YAML front matter.
- XmlNode
- A parsed XML node from a
supersigil-xmlfence.
Functions§
- deserialize_
front_ matter - Deserialize YAML front matter, extracting the
supersigil:namespace and preserving extra metadata keys. - extract_
components_ from_ xml - Walk parsed XML nodes and extract known components as
ExtractedComponentvalues. - extract_
front_ matter - Detect and extract YAML front matter between
---delimiters. - extract_
markdown_ fences - Parse a Markdown body and extract
supersigil-xmlfenced code blocks. - normalize
- Strip BOM and normalize CRLF → LF in already-decoded text.
- parse_
content - Parse a spec document from an in-memory string into a
ParseResult. - parse_
content_ recovering - Parse a spec document from an in-memory string into a
ParseResult. - parse_
file - Parse a single spec file into a
ParseResult. - parse_
supersigil_ xml - Parse the content of a
supersigil-xmlfence into structured XML nodes. - preprocess
- Stage 1: Preprocess raw bytes — decode UTF-8, strip BOM, normalize CRLF to LF.
- validate_
components - Validate extracted components against the known component definitions.