public void removeProductions(int symbol) {
        int prod;

        for (prod = getProductionCount() - 1; prod >= 0; prod--) {
            if (getLeft(prod) == symbol) {
                removeProduction(prod);
            }
        }
    }
public void removeProductions ( int symbol ) { int prod ; for ( prod = getProductionCount ( ) - 1 ; prod >= 0 ; prod -- ) { if ( getLeft ( prod ) == symbol ) { removeProduction ( prod ) ; } } }
--