function &boolean() { if ($this->is_bool($this->current)) { $bool = new Boolean($this->current); $this->fetch_token(); $bool->add_modifiers($this->modifiers()); return $bool; } else { $this->diagnostic = new Diagnostic("Expected Boolean, got {$this->current}"); return null; } }