class Tlf\Lexer\Grammar
Constants
Properties
-
protected $blankCount = 0;
-
protected \Tlf\Lexer $lexer;
the lexer currently running
Methods
-
public function lexer_started($lexer, $ast, $token)
-
public function setLexer($lexer)
-
public function getNamespace()
Get a namespace prefix to use for specifying what directive to target
-
public function getAstClass()
Get the class to use for any new ASTs where the directive does not specify.
-
public function getDirectives($directiveName, array $overrides=[])
Get an array of directives from the list of directive names