public List<BinaryRule> getBinaryRulesByRightChild(String rightChild) { return CollectionUtils.getValueList(binaryRulesByRightChild, rightChild); }
public List<UnaryRule> getUnaryRulesByChild(String child) { return CollectionUtils.getValueList(unaryRulesByChild, child); }
/* Rules in grammar are indexed by child for easy access when * doing bottom up parsing. */ public List<BinaryRule> getBinaryRulesByLeftChild(String leftChild) { return CollectionUtils.getValueList(binaryRulesByLeftChild, leftChild); }