Parser
class Parser implements ParserInterface
CSS selector parser.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.
Methods
parse(string $source)
Parses given selector source into an array of tokens.
static array
parseSeries(array $tokens)
Parses the arguments for ":nth-child()" and friends.
Details
at line line 40
__construct(Tokenizer $tokenizer = null)
Constructor.
at line line 48
SelectorNode[]
parse(string $source)
Parses given selector source into an array of tokens.
at line line 65
static array
parseSeries(array $tokens)
Parses the arguments for ":nth-child()" and friends.