/** * Returns the type of the previous token * @param boolean $ignore_nl (wether to ignore new line) * @return false|string(false if beginning is reached) */ protected function back() { $this->t = $this->_lexer->back(); // skip new lines while ($this->t && $this->t->value == "\n") { $this->t = $this->_lexer->back(); } return $this->_t(); }
/** * Returns the type of the previous token * @param boolean $ignore_nl (wether to ignore new line) * @return false|string(false if beginning is reached) */ protected function back() { $this->t = $this->_lexer->back(); // skip new lines while ($this->t && $this->t->type == EPQ_T_NEWLINE) { $this->t = $this->_lexer->back(); } return $this->_t(); }