Skip to main content

Crate muskitty_css

Crate muskitty_css 

Source
Expand description

MusKitty CSS (umbrella)

Re-exports the tokenizer (muskitty-css-tokenizer) and parser (muskitty-css-parser) crates. Downstream crates can either depend on this umbrella for the full CSS Syntax stack, or on the individual sub-crates for finer-grained dependencies.

§Architecture

  1. Tokenization (tokenizer) — re-exported from muskitty-css-tokenizer (§4.3, fully implemented).
  2. Parsing (parser) — re-exported from muskitty-css-parser (§5, fully implemented).

§Top-level API

§References

Modules§

parser
CSS Syntax parser — re-export shim.
tokenizer
CSS Syntax tokenizer — re-export shim.

Structs§

Function
§5.2 L1705-1708: A function has a name and a value (list of component values).
SimpleBlock
§5.2 L1710-1719: A simple block has an associated token (the opening token) and a value (list of component values).

Enums§

BlockKind
§5.2 L1710-1719: The associated token kind of a simple block, mirroring the opening { / [ / (.

Functions§

parse_comma_separated_list_of_component_values
Parse a CSS string into a comma-separated list of ComponentValue (§5.4.10).
parse_component_value
Parse a CSS string into a single ComponentValue (§5.4.8).
parse_declaration
Parse a CSS string into a single Declaration (§5.4.7).
parse_list_of_component_values
Parse a CSS string into a list of ComponentValue (§5.4.9).
parse_rule
Parse a CSS string into a single Rule (§5.4.6).
parse_stylesheet
Parse a CSS string into a Stylesheet (§5.4.3).
tokenize
Tokenize a CSS input string into a vector of tokens.