polyglot.ext.ibex.lr
Class MergeDetection

java.lang.Object
  extended bypolyglot.ext.ibex.lr.MergeDetection

public class MergeDetection
extends java.lang.Object


Constructor Summary
MergeDetection(GLR glr)
           
 
Method Summary
 java.util.Collection mergeRulesForNonterminal(polyglot.ext.ibex.lr.GLRNonterminal n)
          Return a collection of collections of right-hand-sides rhs associated with the nonterminal lhs such that the rule lhs ::= rhs requires a merge action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeDetection

public MergeDetection(GLR glr)
Method Detail

mergeRulesForNonterminal

public java.util.Collection mergeRulesForNonterminal(polyglot.ext.ibex.lr.GLRNonterminal n)
Return a collection of collections of right-hand-sides rhs associated with the nonterminal lhs such that the rule lhs ::= rhs requires a merge action. Each pair of rules in each collection should have a merge action.