Lines Matching defs:_tokens
25 protected $_tokens = array();
32 $this->_tokens = &$tokens;
39 return $this->_tokens;
91 return array_shift($this->_tokens);
138 if ($allowEndOfTokens === TRUE && (!isset($this->_tokens[$position]))) {
144 return $this->_tokens[$position];
160 return (count($this->_tokens) <= $position);
193 while (count($this->_tokens) > $position) {
207 array_splice($this->_tokens, 0, $position);
227 $parser = new $parserClass($this->_tokens);
242 if (!isset($this->_tokens[$position])) {
251 return ($this->_tokens[$position]->type === $type);
263 if (!isset($this->_tokens[$position])) {
268 return new Exception\TokenMismatchException($this->_tokens[$position], $expectedTokens);