src/grammar.cpp
shared_ptr<Rule> Grammar::getRule(const string & ruleName) const
{
    for(shared_ptr<Rule> r : rules)
    {
        if(r->getRuleName() == ruleName)
        {
            return r;
        }
    }
    return nullptr;
}
/**
  * Returns a pointer to a Rule object that has the specified name. Returns nullptr if not rule can be found!
  * \param [in] ruleName
  * \return shared_ptr<Rule>
  * \return nullptr if no rule can be found
  */
Returns a pointer to a Rule object that has the specified name. Returns nullptr if not rule can be found.
\param [in] ruleName
\return shared_ptr
\return nullptr if no rule can be found
Returns a pointer to a Rule object that has the specified name . Returns nullptr if not rule can be found . \ param [ in ] ruleName \ return shared_ptr \ return nullptr if no rule can be found
shared_ptr<Rule> Grammar::getRule(const string & ruleName) const
{
    for(shared_ptr<Rule> r : rules)
    {
        if(r->getRuleName() == ruleName)
        {
            return r;
        }
    }
    return nullptr;
}
shared_ptr < Rule > Grammar :: getRule ( const string & ruleName ) const { for ( shared_ptr < Rule > r : rules ) { if ( r -> getRuleName ( ) == ruleName ) { return r ; } } return nullptr ; }
Returns a pointer to a Rule object that has the specified name.
Returns a pointer to a Rule object that has the specified name .