\lessc_parser
Synopsis
class lessc_parser
{
- // members
- protected static integer $nextBlockId = 0;
- protected static array $precedence = ;
- protected static $whitePattern;
- protected static $commentMulti;
- protected static string $commentSingle = "//";
- protected static string $commentMultiLeft = "/*";
- protected static string $commentMultiRight = "*/";
- protected static $operatorString;
- protected static array $supressDivisionProps = ;
- protected array $blockDirectives = ;
- protected array $lineDirectives = ;
- protected boolean $inParens = false;
- protected static array $literalCache = ;
- // methods
- public void __construct()
- public void parse()
- protected void parseChunk()
- protected void isDirective()
- protected void fixTags()
- protected void expressionList()
- protected void expression()
- protected void expHelper()
- public void propertyValue()
- protected void parenValue()
- protected void value()
- protected void import()
- protected void mediaQueryList()
- protected void mediaQuery()
- protected void mediaExpression()
- protected void openString()
- protected void string()
- protected void interpolation()
- protected void unit()
- protected void color()
- protected void argumentValues()
- protected void argumentDef()
- protected void tags()
- protected void mixinTags()
- protected void tagBracket()
- protected void tagExpression()
- protected void tag()
- protected void func()
- protected void variable()
- protected void assign()
- protected void keyword()
- protected void end()
- protected void guards()
- protected void guardGroup()
- protected void guard()
- protected void literal()
- protected void genericList()
- protected void to()
- protected void match()
- protected void whitespace()
- protected void peek()
- protected void seek()
- public void throwError()
- protected void pushBlock()
- protected void pushSpecialBlock()
- protected void append()
- protected void pop()
- protected void removeComments()
Tasks
Line | Task |
---|---|
2111 | report where the block was opened |
2303 | cache pattern in parser |
3198 | this depends on $this->count |
3213 | kill me from here |
Members
protected
- $blockDirectives
- $commentMulti
- $commentMultiLeft
- $commentMultiRight
- $commentSingle
-
$inParens
if we are in parens we can be more liberal with whitespace around operators because it must evaluate to a single value and thus is less ambiguous. - $lineDirectives
- $literalCache
- $nextBlockId
- $operatorString
- $precedence
- $supressDivisionProps
- $whitePattern
Methods
protected
- append()
- argumentDef()
- argumentValues()
- assign() — Consume an assignment operator Can optionally take a name that will be set to the current property name
- color()
- end()
- expHelper() — recursively parse infix equation with $lhs at precedence $minP
- expression() — Attempt to consume an expression.
- expressionList()
- fixTags()
- func()
- genericList()
- guard()
- guardGroup()
- guards()
- import()
- interpolation()
- isDirective()
- keyword()
- literal()
- match()
- mediaExpression()
- mediaQuery()
- mediaQueryList()
- mixinTags()
- openString()
- parenValue()
- parseChunk() — Parse a single chunk off the head of the buffer and append it to the current parse environment.
- peek()
- pop()
- pushBlock()
- pushSpecialBlock()
- removeComments()
- seek()
- string()
- tag()
- tagBracket()
- tagExpression()
- to()
- unit()
- value()
- variable()
- whitespace()