/** * Throw syntax error. * * @param error the error * @throws org.matheclipse.parser.client.SyntaxError the syntax error */ protected void throwSyntaxError( final String error ) throws SyntaxError { throw new SyntaxError( fCurrentPosition - 1, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1 ); }
protected void throwSyntaxError(final String error, final int errorLength) throws SyntaxError { throw new SyntaxError(fCurrentPosition - errorLength, fRowCounter, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength); } }
/** * Throw syntax error. * * @param error the error * @param errorLength the error length * @throws org.matheclipse.parser.client.SyntaxError the syntax error */ protected void throwSyntaxError( final String error, final int errorLength ) throws SyntaxError { throw new SyntaxError( fCurrentPosition - errorLength, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength ); }
protected void throwSyntaxError(final String error, final int errorLength) throws SyntaxError { throw new SyntaxError(fCurrentPosition - errorLength, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength); }
protected void throwSyntaxError(final String error) throws SyntaxError { throw new SyntaxError(fCurrentPosition - 1, fRowCounter, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1); }
protected void throwSyntaxError(final String error) throws SyntaxError { throw new SyntaxError(fCurrentPosition - 1, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1); }