src/grammar.cpp
void Grammar::walkGrammar(void (* callback)(Expansion *)) {
    for(shared_ptr<Rule> r : rules) {
        walkExpansion(r->getRuleExpansion().get(), callback);
    }
}
/** Walks through all of the expansions in every rule. Calls the callback function for each expansion it walks across.
  * \param callback A void returning function that expects a pointer to an Expansion for its args. The expansion pointer is the expansion that was encountered
  *
  *
  */
Walks through all of the expansions in every rule. Calls the callback function for each expansion it walks across.
\param callback A void returning function that expects a pointer to an Expansion for its args. The expansion pointer is the expansion that was encountered
Walks through all of the expansions in every rule . Calls the callback function for each expansion it walks across . \ param callback A void returning function that expects a pointer to an Expansion for its args . The expansion pointer is the expansion that was encountered
void Grammar::walkGrammar(void (* callback)(Expansion *)) {
    for(shared_ptr<Rule> r : rules) {
        walkExpansion(r->getRuleExpansion().get(), callback);
    }
}
void Grammar :: walkGrammar ( void ( * callback ) ( Expansion * ) ) { for ( shared_ptr < Rule > r : rules ) { walkExpansion ( r -> getRuleExpansion ( ) . get ( ) , callback ) ; } }
Walks through all of the expansions in every rule.
Walks through all of the expansions in every rule .