org.metasyntactic.math.automata
Class ReduceReduceConflict

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.metasyntactic.math.automata.ParseTableConflict
                    |
                    +--org.metasyntactic.math.automata.ReduceReduceConflict
All Implemented Interfaces:
java.io.Serializable

public class ReduceReduceConflict
extends ParseTableConflict

There are context-free grammars for which shift-reducing parsing cannot be used. Every shift-reduce parser for such a grammar can reach a configuration in which the parser, knowing the entire stack contents and the next input symbol, cannot decide which of several reductions to make.

See Also:
Serialized Form

Constructor Summary
ReduceReduceConflict(org.metasyntactic.math.automata.LRParseTable.Reduce reduce1, org.metasyntactic.math.automata.LRParseTable.Reduce reduce2)
          Creates new ShiftReduceConflict without detail message.
ReduceReduceConflict(org.metasyntactic.math.automata.LRParseTable.Reduce reduce1, org.metasyntactic.math.automata.LRParseTable.Reduce reduce2, java.lang.String msg)
          Constructs an ShiftReduceConflict with the specified detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReduceReduceConflict

public ReduceReduceConflict(org.metasyntactic.math.automata.LRParseTable.Reduce reduce1,
                            org.metasyntactic.math.automata.LRParseTable.Reduce reduce2)
Creates new ShiftReduceConflict without detail message.


ReduceReduceConflict

public ReduceReduceConflict(org.metasyntactic.math.automata.LRParseTable.Reduce reduce1,
                            org.metasyntactic.math.automata.LRParseTable.Reduce reduce2,
                            java.lang.String msg)
Constructs an ShiftReduceConflict with the specified detail message.

Parameters:
msg - the detail message.