# StylesheetParser v0.1.0 - Table of Contents > A CSS Syntax Level 3 tokenizer and parser, with CSS Nesting and a Selectors Level 4 selector parser. ## Pages - [StylesheetParser](readme.md) - [Changelog](changelog.md) ## Modules - Parsing - [StylesheetParser](StylesheetParser.md): A [CSS Syntax Level 3](https://www.w3.org/TR/css-syntax-3/) tokenizer and parser, with [CSS Nesting](https://www.w3.org/TR/css-nesting-1/) and a [Selectors Level 4](https://www.w3.org/TR/selectors-4/) selector parser. - [StylesheetParser.ParseError](StylesheetParser.ParseError.md): Malformed input, and where it is. - [StylesheetParser.Selector.Parser](StylesheetParser.Selector.Parser.md): [Selectors Level 4](https://www.w3.org/TR/selectors-4/), over component values, as `StylesheetParser.parse_component_values/1` returns them: an attribute selector is a `[]` `StylesheetParser.SimpleBlock`, and a functional pseudo-class or pseudo-element is a `StylesheetParser.Function`, its arguments its component values, except for the pseudo-classes whose arguments parse here, a `StylesheetParser.PseudoClass`: `:is()`, `:where()`, `:not()` and the `:nth-*()` ones. `&` is the nesting selector of [CSS Nesting](https://www.w3.org/TR/css-nesting-1/). - [StylesheetParser.Syntax.Parser](StylesheetParser.Syntax.Parser.md): The parsing algorithms of [CSS Syntax Level 3](https://www.w3.org/TR/css-syntax-3/#parsing), as its current draft has them with [CSS Nesting](https://www.w3.org/TR/css-nesting-1/), over the tokenizer's tokens, `{type, value, metadata}` with `[line: l, column: c]`, like Elixir AST. - [StylesheetParser.Syntax.Tokenizer](StylesheetParser.Syntax.Tokenizer.md): The [tokenizer](https://www.w3.org/TR/css-syntax-3/#tokenization) of CSS Syntax Level 3, over preprocessed input (`StylesheetParser.tokenize/1` turns `\r\n`, `\r` and `\f` into `\n` and NUL into U+FFFD). - Rules - [StylesheetParser.AtRule](StylesheetParser.AtRule.md): An at-rule, such as `@import url(theme.css);` or `@media print { ... }`. - [StylesheetParser.Declaration](StylesheetParser.Declaration.md): A declaration, `name: value`, in a rule's block or a style attribute. - [StylesheetParser.Function](StylesheetParser.Function.md): A function among component values, such as `var(--gap, 1rem)`. - [StylesheetParser.QualifiedRule](StylesheetParser.QualifiedRule.md): A style rule, such as `.card > h2 { margin: 0 }`. - [StylesheetParser.SimpleBlock](StylesheetParser.SimpleBlock.md): A block among component values: in `()`, such as a media feature `(width > 600px)`; in `[]`, such as an attribute selector's; or in `{}`. - [StylesheetParser.Stylesheet](StylesheetParser.Stylesheet.md): A parsed stylesheet, from `StylesheetParser.parse_stylesheet/1`. - Selectors - [StylesheetParser.ComplexSelector](StylesheetParser.ComplexSelector.md): Compound selectors joined by combinators, such as `.card > h2 span`. - [StylesheetParser.CompoundSelector](StylesheetParser.CompoundSelector.md): Selectors of one element together, such as `a.external:hover::after`. - [StylesheetParser.PseudoClass](StylesheetParser.PseudoClass.md): A functional pseudo-class whose arguments parse: `:is()`, `:where()`, `:not()`, and the `:nth-*()` ones. - [StylesheetParser.SimpleSelector](StylesheetParser.SimpleSelector.md): A selector of one part, such as `.card` or `:hover`.