private int getSymbolPriority( Character sym ) {
        switch ( sym ) {
            case '(':
                return 0;
            case ')':
                return 0;
            case '+':
                return 1;
            case '.':
                return 2;
            case '*':
                return 3;
            default:
                return 0;

        }
    }