quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_mmedia.a #include <ProductionRuleTokenType.h> bool setType(ProductionRuleTokenType::TYPE); ProductionRuleTokenTypeTokenType::TYPE getType();
description:ProductionRuleTokenType prtt; prtt.setType(ProductionRuleTokenType::NON_TERMINAL);
ProductionRule prdrl; prdrl.setRuleName(L"A"); prdrl.append(ProductionRuleTokenType::NON_TERMINAL, L"a"); prdrl.append(ProductionRuleTokenType::KLEENE_STAR);dependencies:
static const String ProductionRuleTokenType::CLASS_NAME = L"ProductionRuleTokenType";
static const String ProductionRuleTokenType::DEF_PARAM = L"";
static const long ProductionRuleTokenType::DEF_TAG = 0;
static const String ProductionRuleTokenType::PARAM_TYPE = L"type";
static const String ProductionRuleTokenType::BLOCK_START_STR = L"{";
static const String ProductionRuleTokenType::BLOCK_DELIM_STR = L"}, {";
static const String ProductionRuleTokenType::BLOCK_END_STR = L"}";
static const String ProductionRuleTokenType::BLOCK_TERM_STR = L";\n";
ProductionRuleTokenType::TYPE type_d;
DebugLevel debug_level_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean setDebug(Integral::DEBUG debug_level);
boolean debug(const unichar* msg) const;
ProductionRuleTokenType();
boolean read(Sof& sof, long tag, const String& cname = CLASS_NAME);
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean write(Sof& sof, long tag, const String& cname = CLASS_NAME) const;
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
long sofSize() const;
boolean assign(const ProductionRuleTokenType& prdrl_a);
ProductionRuleTokenType& operator=(const ProductionRuleTokenType& prdrl_a);
boolean eq(const ProductionRuleTokenType& prdrl_a) const;
ProductionRuleTokenType& operator==(const ProductionRuleTokenType& prdrl_a);
boolean clear(Integral::CMODE ctype);
ProductionRuleTokenType getType();
bool setType(ProductionRuleTokenType::TYPE);
bool setType(const String& type_a);
// declare the ProductionRuleTokenType // ProductionRuleTokenType prdrl; // set the name // prdrl.setRuleName(L"A"); // construct the RHS // prdrl.append(ProductionRuleTokenTypeTokenType::OPEN_PAREN); prdrl.append(ProductionRuleTokenTypeTokenType::TERMINAL, L"a"); prdrl.append(ProductionRuleTokenTypeTokenType::CONCATENATION); prdrl.append(ProductionRuleTokenTypeTokenType::NON_TERMINAL, L"B"); prdrl.append(ProductionRuleTokenTypeTokenType::CONCATENATION); prdrl.append(ProductionRuleTokenTypeTokenType::KLEENE_PLUS); // output the string representation of the rule // Console::put(prdrl.getRule());