private function syntaxError(): void
    {
        throw new SyntaxErrorException(
            $this->lexer->getInputUntilPosition(PHP_INT_MAX),
            $this->lexer->lookahead['value'] ?: 'end of string',
            (int) $this->lexer->lookahead['position']
        );
    }