Home | History | Annotate | Download | only in grxmlcompile

Lines Matching defs:rule

92     m_NodeKeyWords.insert(make_pair("rule", NodeTypeRule));
135 //Print the root rule.
144 // We will create a new subgraph for each rule node.
364 m_RootRule = GETATTR("root"); // The root rule name
366 DEBUG_PRINT("Root rule = " + m_RootRule);
412 DEBUG_PRINT ( "---- Rule\n" );
419 // Rule name must be unique within scope of entire grammar.
420 // Put rule on stack - for context
423 // Check whether a ruleref placeholder exists for this rule.
427 // Rule is already declared; it must have been forward referenced
429 // NB subgraph and rule name are already known to lists.
435 FATAL_ERROR("ERROR! Subgraph without rule name entry found!", -1);
439 // Create a Word Graph node for each rule node
463 // The rule expression has been built as a subgraph and ID added to the rule list.
465 DEBUG_PRINT ( "---- /Rule\n" );
472 // Must be unique rule name within scope of entire grammar.
473 // Check whether a ruleref placeholder exists for this rule.
526 // If a slot then take note of rule name
618 FATAL_ERROR( "ERROR! bad ruleref name: '" + s + "'" + ". Rule reference must start with a '#'. External references are not supported.", -1 );
631 // RED FLAG: Remember to check fwd ref rule was filled in at end.
767 // case XMLNode::xml_nt_node: // grammar, rule, one-of, item, count
814 and extends list of rule names too.
815 TODO: Can we use one hash and use internal numeric index for rule IDs?
823 FATAL_ERROR("ERROR! Rule name " + ruleName + " is already defined!", -1 );
829 std::cout << "Rule " << ruleName << std::endl;
852 // The rule strings are part of the hashtables and get deleted by them.
863 FATAL_ERROR("No subgraph for rule " + ruleName + "! Mismatched rules and subgraph hashtables!", -1);
957 std::string rule;
959 if ( m_RuleList.getFirst( &rule, &index) ) {
960 if ( findSubGraph( rule, p_SubGraph ) ) {
961 DEBUG_PRINT("============ Rule: " + rule + "============");
963 while ( m_RuleList.getNext( &rule, &index) ) {
964 if ( findSubGraph( rule, p_SubGraph ) ) {
1002 /* Predefined rules. NB Labels are also created for each rule added.
1137 FATAL_ERROR ("ERROR: writeGraphFiles - no root rule "+ m_RootRule + " defined. No file created", -1 );