TokenStream
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
at line 29
int
getPos()
No description
at line 36
array
getTokens()
No description
at line 42
bool
isNext(...$types)
No description
at line 53
Token|null
consume(...$types)
No description
at line 61
string
getIndentation()
No description
at line 71
void
error(string $message = null, int $pos = null)
No description