public function eat($string) { if ($this->expect($string)) { $this->position += strlen($string); return true; } return false; }