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']
        );
    }
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']
        );
    }
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' ] ) ; }
Throw a syntax error exception.

@throws SyntaxErrorException
Throw a syntax error exception .