Module parser

Module parser 

Source
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§

ComplexSelector
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.
ParserError
Parser error
Selector
SelectorPart

Enums§

AtQuery
Combinator
Combinator defining the relationship between selectors.
CssNodeType
Node kinds used in the CSS syntax tree.
ParserErrorKind
Parser error kinds

Type Aliases§

ParseResult
Result type for parser functions