JSGFRuleSequence ruleSequence = (JSGFRuleSequence) currentRule;
ruleSequence.append(topRule);
newRule.parent = currentRule;
currentRule = newRule;
} else if (currentRule instanceof JSGFRuleAlternatives) {
JSGFRuleAlternatives ruleAlternatives = (JSGFRuleAlternatives) currentRule;
ruleAlternatives.append(topRule);
newRule.parent = currentRule;
currentRule = newRule;
}
}