예제 #1
0
 /**
 ----------------------------------------------------------------------+
 * @desc 	Return location of previous meaningfull token
 * @param	int
 * @return	Int
 ----------------------------------------------------------------------+
 */
 protected function prev($pos)
 {
     $i = $pos;
     while ($i >= 0) {
         if (Tokenizer::meaningfull($this->tokens[--$i][0])) {
             return $i;
         }
     }
 }