#include <GrammarRules.hpp>
Static Public Member Functions | |
static int | getExpressionFor (std::string strGrammarID, unsigned int uiType, std::vector< Grammar * > *pvgrampExpression) |
Static Public Attributes | |
static const unsigned int | TERMINAL = 1 |
static const unsigned int | NON_TERMINAL = 2 |
static const unsigned int | ANY = 3 |
static int GrammarRules::getExpressionFor | ( | std::string | strGrammarID, | |
unsigned int | uiType, | |||
std::vector< Grammar * > * | pvgrampExpression | |||
) | [static] |
Returns a valid list of child symbols given a particular symbols.
[in] | strGrammarID | A string specifying the symbol for which the child symbols are being queried. |
[in] | uiType | A flag specifying if there is any preference for a particular sort of rule to be chosen. |
[out] | pvgramExpression | The child symbol list that was chosen. |
const unsigned int GrammarRules::ANY = 3 [static] |
flag to return any symbols corresponding to the grammar specification.
const unsigned int GrammarRules::NON_TERMINAL = 2 [static] |
flag to return symbols which contain recursive steps.
const unsigned int GrammarRules::TERMINAL = 1 [static] |
flag to return symbols which lead to leaf nodes without recursive steps.