final class TokenStream

internal  
 

Methods

__construct(array $tokens)

No description

int
getPos()

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 33
array getTokens()

No description

Return Value

array

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

No description

Parameters

int|string ...$types

Return Value

bool

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

No description

Parameters

int|string ...$types

Return Value

Token|null

at line 59
string getIndentation()

No description

Return Value

string

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

No description

Parameters

string|null $message
int|null $pos

Return Value

void