Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Parser functions for CSS3 selectors.
- parseSelectorGroup :: String -> Either ParseError SelectorGroup
- parseSelector :: String -> Either ParseError Selector
- sel :: String -> Selector
- selectorGroup :: Parser SelectorGroup
- selector :: Parser Selector
- simpleSelectorSequence :: Parser SimpleSelectorSequence
- headSimpleSelector :: Parser HeadSimpleSelector
- tailSimpleSelector :: Parser TailSimpleSelector
- attributeSelector :: Parser TailSimpleSelector
- attributeOperator :: Parser AttributeOperator
- combinator :: Parser Combinator
- pseudoClass :: Parser PseudoClass
- pseudoClassParameter :: Parser PseudoClassParameter
- whitespace :: Parser Char
- identifier :: Parser String
- name :: Parser String
- nameStartLetter :: Parser Char
- nameCharLetter :: Parser Char
Parsing Functions
parseSelectorGroup :: String -> Either ParseError SelectorGroup Source #
Tries to parse a selector group.
parseSelector :: String -> Either ParseError Selector Source #
Tries to parse a single selector.
sel :: String -> Selector Source #
Parses a single selector and fails with an error if the string cannot be parsed correctly. This function is intended for testing purposes only.
CSS Selector Parsers
Lexical Syntax Parsers
whitespace :: Parser Char Source #