class Lexer (View source)

Constants

protected PATTERN_EEL_EXPRESSION

protected TOKEN_REGEX

Properties

protected $code
protected $codeLen
protected $cursor
protected $lookahead

Methods

__construct(string $code)

No description

string
getCode()

No description

int
getCursor()

No description

consumeLookahead()

No description

Token|null

Details

__construct(string $code)

No description

Parameters

string $code

string getCode()

No description

Return Value

string

int getCursor()

No description

Return Value

int

Token consumeLookahead()

No description

Return Value

Token

Token|null getCachedLookaheadOrTryToGenerateLookaheadForTokenAndGetLookahead(int $tokenType)

No description

Parameters

int $tokenType

Return Value

Token|null