parserino.css.tokenizer
CSS tokenizer (CSS Syntax Level 3), limited to what selectors need. It works at runtime and at compile time.
Types 3
enumTokenType : ubyte
Token types, as in CSS Syntax (Cdo is `<!--`, Cdc is `-->`)
Eof
Ident
Functiona name followed by a left parenthesis: `text` is the name
AtKeyword
Hash`text` is the name after '#'
String
BadString
Delim`delim` is the character
Number
Percentage
Dimensionnumber + `text` (the unit)
Whitespace
Cdo
Cdc
Colon
Semicolon
Comma
LeftSquare
RightSquare
LeftParen
RightParen
LeftCurly
RightCurly
structToken
A token
structTokenizer
The tokens of a string, one at a time (front, popFront)
Fields
bool failedOut of memory while unescapingMethods
const(Token) frontSkipSpace() ref @nogc nothrow pure @safe returnCurrent token, skipping one whitespace token