Expand description
CSS Parser
Consumes tokens produced by the tokenizer and builds higher-level CSS syntax structures.
§Responsibilities
- Parse token streams into structured CSS data (selectors, declarations, component values)
- Handle nesting such as blocks and functions
§Non-responsibilities
- Tokenization of raw input
- Semantic interpretation (length resolution, color computation, etc.)
§Design notes
- No property-specific validation is performed here
- Semantic meaning is assigned in later stages (style computation, layout)
Structs§
- Complex
Selector - A complex CSS selector composed of multiple selector parts.
- CssNode
- Node in the CSS syntax tree.
- Parser
- CSS parser consuming tokens and producing syntax structures.
- Parser
Error - Parser error
- Selector
- Selector
Part
Enums§
- AtQuery
- Combinator
- Combinator defining the relationship between selectors.
- CssNode
Type - Node kinds used in the CSS syntax tree.
- Parser
Error Kind - Parser error kinds
Type Aliases§
- Parse
Result - Result type for parser functions