Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * 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();
 }