for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Remorhaz\Lexer\Runtime\Token;
use Remorhaz\Lexer\Runtime\IO\LexemeInterface;
/**
* @psalm-immutable
*/
final class MatchRepeat implements MatchResultInterface
{
* @return bool
* @psalm-pure
public function shouldRepeat(): bool
return true;
}
public function hasToken(): bool
return false;
* @return TokenInterface
public function getToken(): TokenInterface
throw new Exception\TokenNotReadyException();
public function hasLexeme(): bool
* @return LexemeInterface
public function getLexeme(): LexemeInterface