private function parse_variable($access, $static) { if ($this->at(T_VARIABLE)) { $var = new Variable(substr($this->current_text(), 1)); $var->set_access($access); $var->set_static($static); $this->accept(); $this->s(); if ($this->at('=')) { $this->accept(); $this->s(); $var->set_value($this->parse_value()); } return $var; } else { // parse error } }