src/grammar.cpp
vector<shared_ptr<MatchInfo>> Grammar::matchesRule(const string & ruleName, const string & test) const {
    shared_ptr<Rule> r = getRule(ruleName);
    if(!r) { // Check to make sure rule exists
        vector<shared_ptr<MatchInfo>> m;
        return m;
    }
    return matchesRule(r, test);
}
/**
  * Overloading convenience function for vector<shared_ptr<MatchInfo>> Grammar::matchesRule(shared_ptr<Rule> rule, string test) that accepts a string for the rule name.
  * \param [in] ruleName Name of the Rule to be matched against
  * \param [in] test string that will be matched against the Rule
  * \return vector<shared_ptr<MatchInfo>> - see vector<shared_ptr<MatchInfo>> Grammar::matchesRule(shared_ptr<Rule> rule, string test)
  */
Overloading convenience function for vector> Grammar::matchesRule(shared_ptr rule, string test) that accepts a string for the rule name.
\param [in] ruleName Name of the Rule to be matched against
\param [in] test string that will be matched against the Rule
\return vector> - see vector> Grammar::matchesRule(shared_ptr rule, string test)
Overloading convenience function for vector > Grammar :: matchesRule ( shared_ptr rule string test ) that accepts a string for the rule name . \ param [ in ] ruleName Name of the Rule to be matched against \ param [ in ] test string that will be matched against the Rule \ return vector > - see vector > Grammar :: matchesRule ( shared_ptr rule string test )
vector<shared_ptr<MatchInfo>> Grammar::matchesRule(const string & ruleName, const string & test) const {
    shared_ptr<Rule> r = getRule(ruleName);
    if(!r) { 
        vector<shared_ptr<MatchInfo>> m;
        return m;
    }
    return matchesRule(r, test);
}
vector < shared_ptr < MatchInfo > > Grammar :: matchesRule ( const string & ruleName , const string & test ) const { shared_ptr < Rule > r = getRule ( ruleName ) ; if ( ! r ) { vector < shared_ptr < MatchInfo > > m ; return m ; } return matchesRule ( r , test ) ; }
Overloading convenience function for vector<shared_ptr<MatchInfo>> Grammar::matchesRule(shared_ptr<Rule> rule, string test) that accepts a string for the rule name.
Overloading convenience function for vector<shared_ptr<MatchInfo >> Grammar :: matchesRule ( shared_ptr<Rule > rule string test ) that accepts a string for the rule name .
// Check to make sure rule exists