Esempio n. 1
0
 /**
  * *************************************************************************** Same as {@link
  * #addRuleAlternative(Rule, Rule)}, but allows the alternative to already be known by the
  * grammar.
  */
 public void addExistingRuleAlternative(Rule extendedRule, Rule rule, boolean prioritary) {
   if (prioritary) {
     extendedRule.children().add(0, rule);
   } else {
     extendedRule.children().add(rule);
   }
 }
Esempio n. 2
0
 /** ************************************************************************* */
 public void removeRuleAlternative(Rule extendedRule, Rule rule) {
   unregisterRule(rule);
   extendedRule.children().remove(rule);
 }