final class TokenStream

internal  
 

Methods

__construct(array $tokens)

No description

int
getPos()

No description

void
seek(int $position)

No description

array
getTokens()

No description

bool
isNext(int|string ...$types)

No description

Token|null
consume(int|string ...$types)

No description

string
getIndentation()

No description

void
error(string|null $message = null, int|null $pos = null)

No description

Details

at line 19
__construct(array $tokens)

No description

Parameters

array $tokens

at line 26
int getPos()

No description

Return Value

int

at line 32
void seek(int $position)

No description

Parameters

int $position

Return Value

void

at line 39
array getTokens()

No description

Return Value

array

at line 45
bool isNext(int|string ...$types)

No description

Parameters

int|string ...$types

Return Value

bool

at line 57
Token|null consume(int|string ...$types)

No description

Parameters

int|string ...$types

Return Value

Token|null

at line 65
string getIndentation()

No description

Return Value

string

at line 75
void error(string|null $message = null, int|null $pos = null)

No description

Parameters

string|null $message
int|null $pos

Return Value

void