src/grammar.cpp
bool Grammar::removeRule(const string & ruleName) {
    for(vector<shared_ptr<Rule>>::iterator r = rules.begin(); r != rules.end(); r++) {
        if((*r)->getRuleName() == ruleName) {
            rules.erase(r);
            return true;
        }
    }
    return false;
}
/** Attempts to remove the specified Rule from the list of rules.
  * Returns true on success, returns false if the rule with the specified name could not be found.
  * \param ruleName A string holding the name of the rule that should be removed
  *
  */
Attempts to remove the specified Rule from the list of rules.
Returns true on success, returns false if the rule with the specified name could not be found.
\param ruleName A string holding the name of the rule that should be removed
Attempts to remove the specified Rule from the list of rules . Returns true on success returns false if the rule with the specified name could not be found . \ param ruleName A string holding the name of the rule that should be removed
bool Grammar::removeRule(const string & ruleName) {
    for(vector<shared_ptr<Rule>>::iterator r = rules.begin(); r != rules.end(); r++) {
        if((*r)->getRuleName() == ruleName) {
            rules.erase(r);
            return true;
        }
    }
    return false;
}
bool Grammar :: removeRule ( const string & ruleName ) { for ( vector < shared_ptr < Rule > > :: iterator r = rules . begin ( ) ; r != rules . end ( ) ; r ++ ) { if ( ( * r ) -> getRuleName ( ) == ruleName ) { rules . erase ( r ) ; return true ; } } return false ; }
Attempts to remove the specified Rule from the list of rules.
Attempts to remove the specified Rule from the list of rules .