trait Tlf\LexerTrait\Directives

Manages the state of directives, including the different levels of directives and starting/stopping directives.

Constants

Properties

  • protected $directiveStack = []; A stack of directives. Each layer of the stack has a 'started', 'unstarted', and 'directives' list.
  • protected function &topDirectivesList(){ return $this->directiveStack[count($this->directiveStack)-1];

Methods

  • public function newDirectivesLayer()
  • public function getTopDirectives()