/** * Returns parsed tokens from the source code * * @return Token[] */ public function tokenize() { $this->scanner->enableTokenRegistration(); $this->parse(); return $this->scanner->getTokens(); }