final class TokenStream

internal  
 

Methods

__construct(array $tokens)

No description

int
getPos()

No description

array
getTokens()

No description

bool
isNext(...$types)

No description

Token|null
consume(...$types)

No description

string
getIndentation()

No description

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

No description

Details

at line 23
__construct(array $tokens)

No description

Parameters

array $tokens

at line 29
int getPos()

No description

Return Value

int

at line 36
array getTokens()

No description

Return Value

array

at line 42
bool isNext(...$types)

No description

Parameters

...$types

Return Value

bool

at line 53
Token|null consume(...$types)

No description

Parameters

...$types

Return Value

Token|null

at line 61
string getIndentation()

No description

Return Value

string

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

No description

Parameters

string $message
int $pos

Return Value

void