Token
class Token
Represents a Token.
Constants
| EOF_TYPE |
|
| NAME_TYPE |
|
| NUMBER_TYPE |
|
| STRING_TYPE |
|
| OPERATOR_TYPE |
|
| PUNCTUATION_TYPE |
|
Properties
| $value | |||
| $type | |||
| $cursor |
Methods
__construct(string $type, string|int|float|null $value, int|null $cursor)
No description
string
__toString()
Returns a string representation of the token.
bool
test(array|int $type, string|null $value = null)
Tests the current token for a type and/or a value.