private DIRECTION matchDirection(char d) {
        if (Character.isDigit(d)) {
            return DIRECTION.ANY;
        } else if (d == '+') {
            return DIRECTION.RIGHT;
        } else if (d == '-') {
            return DIRECTION.LEFT;
        }

        throw new ErrorParsingException("Could not parse coordinate operator: " + getValue());
    }