Exemple #1
0
 /**
  * Get the AST of the current namespace skip token.
  *
  * @return  \Hoa\Compiler\Llk\TreeNode
  */
 protected function getSkipTokenAST()
 {
     if (!isset($this->_skipTokenAST[$this->_currentNamespace])) {
         $token = new Compiler\Llk\Rule\Token(-1, 'skip', null, -1);
         $token->setRepresentation($this->_tokens[$this->_currentNamespace]['skip']);
         $this->_skipTokenAST[$this->_currentNamespace] = $token->getAST();
     }
     return $this->_skipTokenAST[$this->_currentNamespace];
 }