Constants

WORD

WORD = 1

UNDERSCORE

UNDERSCORE = 2

ANONYMOUS_END

ANONYMOUS_END = 3

PHRASE_ANONYMOUS_END

PHRASE_ANONYMOUS_END = 4

LITERAL

LITERAL = 5

BACKTICK

BACKTICK = 6

NAMED_REFERENCE_END

NAMED_REFERENCE_END = 7

INTERNAL_REFERENCE_START

INTERNAL_REFERENCE_START = 8

EMBEDED_URL_START

EMBEDED_URL_START = 9

EMBEDED_URL_END

EMBEDED_URL_END = 10

NAMED_REFERENCE

NAMED_REFERENCE = 11

ANONYMOUSE_REFERENCE

ANONYMOUSE_REFERENCE = 12

Properties

$tokenPositions

$tokenPositions : array<int,int>

Map between string position and position in token list.

Type

array

Methods

resetPosition()

resetPosition(int  $position) : mixed

Parameters

int $position

Returns

mixed —

getCatchablePatterns()

getCatchablePatterns() : string[]

Returns

string[] —

scan()

scan(string  $input) : mixed

Parameters

string $input

Returns

mixed —

getNonCatchablePatterns()

getNonCatchablePatterns() : string[]

Returns

string[] —

getType()

getType(mixed  $value) : mixed

Parameters

mixed $value

Returns

mixed —