Method |
Description |
|
append ( [type] $prop, [type] $pos = null ) : void |
Append a property to the current block |
|
argumentDef ( &$args, &$isVararg, [type] $delim = ',' ) : boolean |
Consume an argument definition list surrounded by ()
each argument is a variable name with optional value
or at the end a . |
|
argumentValues ( &$args, [type] $delim = ',' ) : boolean |
Consume a list of property values delimited by ; and wrapped in () |
|
assign ( string $name = null ) : boolean |
Consume an assignment operator
Can optionally take a name that will be set to the current property name |
|
color ( &$out ) : boolean |
a # color |
|
end ( ) : boolean |
Consume an end of statement delimiter |
|
expHelper ( type $lhs, type $minP ) : string |
Recursively parse infix equation with $lhs at precedence $minP |
|
expression ( &$out ) : boolean |
Attempt to consume an expression. |
|
expressionList ( &$exps ) : boolean |
a list of expressions |
|
fixTags ( [type] $tags ) : [type] |
[fixTags description] |
|
func ( &$func ) : boolean |
A css function |
|
genericList ( &$out, [type] $parseItem, string $delim = "", boolean $flatten = true ) : boolean |
[genericList description] |
|
guard ( &$guard ) : boolean |
[guard description] |
|
guardGroup ( &$guardGroup ) : boolean |
A bunch of guards that are and'd together |
|
guards ( &$guards ) : boolean |
[guards description] |
|
import ( &$out ) : boolean |
an import statement |
|
interpolation ( &$out ) : boolean |
[interpolation description] |
|
isDirective ( string $dirname, [type] $directives ) : boolean |
[isDirective description] |
|
keyword ( &$word ) : boolean |
Consume a keyword |
|
literal ( [type] $what, [type] $eatWhitespace = null ) : boolean |
[literal description] |
|
match ( [type] $regex, &$out, [type] $eatWhitespace = null ) : boolean |
Try to match something on head of buffer |
|
mediaExpression ( &$out ) : boolean |
[mediaExpression description] |
|
mediaQuery ( &$out ) : [type] |
[mediaQuery description] |
|
mediaQueryList ( &$out ) : boolean |
[mediaQueryList description] |
|
mixinTags ( &$tags ) : boolean |
List of tags of specifying mixin path
Optionally separated by > (lazy, accepts extra >) |
|
openString ( [type] $end, &$out, [type] $nestingOpen = null, [type] $rejectStrs = null ) : boolean |
An unbounded string stopped by $end |
|
parenValue ( &$out ) : boolean |
[parenValue description] |
|
parseChunk ( ) : boolean |
Parse a single chunk off the head of the buffer and append it to the
current parse environment. |
|
peek ( [type] $regex, &$out = null, [type] $from = null ) : boolean |
Match something without consuming it |
|
pop ( ) : [type] |
Pop something off the stack |
|
pushBlock ( [type] $selectors = null, [type] $type = null ) : stdClass |
[pushBlock description] |
|
pushSpecialBlock ( [type] $type ) : stdClass |
Push a block that doesn't multiply tags |
|
removeComments ( [type] $text ) : [type] |
Remove comments from $text |
|
seek ( [type] $where = null ) : boolean |
Seek to a spot in the buffer or return where we are on no argument |
|
string ( &$out ) : boolean |
[string description] |
|
tag ( &$tag, boolean $simple = false ) : boolean |
A single tag |
|
tagBracket ( &$value ) : boolean |
A bracketed value (contained within in a tag definition) |
|
tagExpression ( &$value ) : boolean |
[tagExpression description] |
|
tags ( &$tags, [type] $simple = false, [type] $delim = ',' ) : boolean |
Consume a list of tags
This accepts a hanging delimiter |
|
to ( [type] $what, &$out, boolean $until = false, boolean $allowNewline = false ) : boolean |
Advance counter to next occurrence of $what
$until - don't include $what in advance
$allowNewline, if string, will be used as valid char set |
|
unit ( &$unit ) : boolean |
[unit description] |
|
value ( &$value ) : boolean |
a single value |
|
variable ( &$name ) : boolean |
Consume a less variable |
|
whitespace ( ) : boolean |
Watch some whitespace |
|