protected function variable(&$out) { $s = $this->seek(); if ($this->literal('$', false) && $this->keyword($name)) { $out = [Type::T_VARIABLE, $name]; return true; } $this->seek($s); return false; }