Parser
in package
Default parser implementation.
Tags
Table of Contents
- $blocks : mixed
- $blockStack : mixed
- $embeddedTemplates : mixed
- $env : mixed
- $expressionParser : mixed
- $handlers : mixed
- $importedSymbols : mixed
- $macros : mixed
- $parent : mixed
- $stack : mixed
- $stream : mixed
- $traits : mixed
- $varNameSalt : mixed
- $visitors : mixed
- __construct() : mixed
- addImportedSymbol() : mixed
- addTrait() : mixed
- embedTemplate() : mixed
- getBlock() : mixed
- getBlockStack() : mixed
- getCurrentToken() : Token
- getExpressionParser() : ExpressionParser
- getImportedSymbol() : mixed
- getParent() : mixed
- getStream() : TokenStream
- getVarName() : mixed
- hasBlock() : mixed
- hasMacro() : mixed
- hasTraits() : mixed
- isMainScope() : mixed
- isReservedMacroName() : mixed
- parse() : mixed
- peekBlockStack() : mixed
- popBlockStack() : mixed
- popLocalScope() : mixed
- pushBlockStack() : mixed
- pushLocalScope() : mixed
- setBlock() : mixed
- setMacro() : mixed
- setParent() : mixed
- subparse() : mixed
- filterBodyNodes() : mixed
Properties
$blocks
private
mixed
$blocks
$blockStack
private
mixed
$blockStack
$embeddedTemplates
private
mixed
$embeddedTemplates
= []
$env
private
mixed
$env
$expressionParser
private
mixed
$expressionParser
$handlers
private
mixed
$handlers
$importedSymbols
private
mixed
$importedSymbols
$macros
private
mixed
$macros
$parent
private
mixed
$parent
$stack
private
mixed
$stack
= []
$stream
private
mixed
$stream
$traits
private
mixed
$traits
$varNameSalt
private
mixed
$varNameSalt
= 0
$visitors
private
mixed
$visitors
Methods
__construct()
public
__construct(Environment $env) : mixed
Parameters
- $env : Environment
Return values
mixed —addImportedSymbol()
public
addImportedSymbol(mixed $type, mixed $alias[, mixed $name = null ][, AbstractExpression $node = null ]) : mixed
Parameters
- $type : mixed
- $alias : mixed
- $name : mixed = null
- $node : AbstractExpression = null
Return values
mixed —addTrait()
public
addTrait(mixed $trait) : mixed
Parameters
- $trait : mixed
Return values
mixed —embedTemplate()
public
embedTemplate(ModuleNode $template) : mixed
Parameters
- $template : ModuleNode
Return values
mixed —getBlock()
public
getBlock(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —getBlockStack()
public
getBlockStack() : mixed
Return values
mixed —getCurrentToken()
public
getCurrentToken() : Token
Return values
Token —getExpressionParser()
public
getExpressionParser() : ExpressionParser
Return values
ExpressionParser —getImportedSymbol()
public
getImportedSymbol(mixed $type, mixed $alias) : mixed
Parameters
- $type : mixed
- $alias : mixed
Return values
mixed —getParent()
public
getParent() : mixed
Return values
mixed —getStream()
public
getStream() : TokenStream
Return values
TokenStream —getVarName()
public
getVarName() : mixed
Return values
mixed —hasBlock()
public
hasBlock(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —hasMacro()
public
hasMacro(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —hasTraits()
public
hasTraits() : mixed
Return values
mixed —isMainScope()
public
isMainScope() : mixed
Return values
mixed —isReservedMacroName()
public
isReservedMacroName(mixed $name) : mixed
Parameters
- $name : mixed
Tags
Return values
mixed —parse()
public
parse(TokenStream $stream[, mixed $test = null ][, mixed $dropNeedle = false ]) : mixed
Parameters
- $stream : TokenStream
- $test : mixed = null
- $dropNeedle : mixed = false
Return values
mixed —peekBlockStack()
public
peekBlockStack() : mixed
Return values
mixed —popBlockStack()
public
popBlockStack() : mixed
Return values
mixed —popLocalScope()
public
popLocalScope() : mixed
Return values
mixed —pushBlockStack()
public
pushBlockStack(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —pushLocalScope()
public
pushLocalScope() : mixed
Return values
mixed —setBlock()
public
setBlock(mixed $name, BlockNode $value) : mixed
Parameters
- $name : mixed
- $value : BlockNode
Return values
mixed —setMacro()
public
setMacro(mixed $name, MacroNode $node) : mixed
Parameters
- $name : mixed
- $node : MacroNode
Return values
mixed —setParent()
public
setParent(mixed $parent) : mixed
Parameters
- $parent : mixed
Return values
mixed —subparse()
public
subparse(mixed $test[, mixed $dropNeedle = false ]) : mixed
Parameters
- $test : mixed
- $dropNeedle : mixed = false
Return values
mixed —filterBodyNodes()
private
filterBodyNodes(Node $node[, bool $nested = false ]) : mixed
Parameters
- $node : Node
- $nested : bool = false