TokenStream
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
at line 26
int
getPos()
No description
at line 33
array
getTokens()
No description
at line 39
bool
isNext(int|string ...$types)
No description
at line 51
Token|null
consume(int|string ...$types)
No description
at line 59
string
getIndentation()
No description
at line 69
void
error(string|null $message = null, int|null $pos = null)
No description