Methods | ||
---|---|---|
public
|
__construct(array $tokens, int $index = 0)
|
# |
public
|
currentTokenValue(): string
|
# |
public
|
currentTokenType(): int
|
# |
public
|
currentTokenOffset(): int
|
# |
public
|
isCurrentTokenValue(string $tokenValue): bool
|
# |
public
|
isCurrentTokenType(int ...$tokenType): bool
|
# |
public
|
isPrecededByHorizontalWhitespace(): bool
|
# |
public
|
consumeTokenType(int $tokenType): void
|
# |
public
|
consumeTokenValue(int $tokenType, string $tokenValue): void
|
# |
public
|
tryConsumeTokenValue(string $tokenValue): bool
|
# |
public
|
tryConsumeTokenType(int $tokenType): bool
|
# |
public
|
getSkippedHorizontalWhiteSpaceIfAny(): string
|
# |
public
|
joinUntil(int ...$tokenType): string
|
# |
public
|
next(): void
|
# |
public
|
forwardToTheEnd(): void
|
# |
public
|
pushSavePoint(): void
|
# |
public
|
dropSavePoint(): void
|
# |
public
|
rollback(): void
|
# |