CodeExplorer processLocalPart example
protected function preLeftParsing(): Result
{ if (!
$this->
hasAtToken()) { return new InvalidEmail(new NoLocalPart(),
$this->lexer->current->value
);
} return new ValidEmail();
} protected function parseLeftFromAt(): Result
{ return $this->
processLocalPart();
} protected function parseRightFromAt(): Result
{ return $this->
processDomainPart();
} private function processLocalPart(): Result
{ $localPartParser =
new LocalPart($this->lexer
);
$localPartResult =
$localPartParser->
parse();