TokenStream
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
at line 26
int
getPos()
No description
at line 32
void
seek(int $position)
No description
at line 39
array
getTokens()
No description
at line 45
bool
isNext(int|string ...$types)
No description
at line 57
Token|null
consume(int|string ...$types)
No description
at line 65
string
getIndentation()
No description
at line 75
void
error(string|null $message = null, int|null $pos = null)
No description