org.inxar.syntacs.automaton.pushdown
Class AmbiguityException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.inxar.syntacs.util.AlgorithmException
|
+--org.inxar.syntacs.automaton.pushdown.AmbiguityException
- All Implemented Interfaces:
- Serializable
- public class AmbiguityException
- extends AlgorithmException
AmbiguityException objects are thrown to indicate mismatches
between the definition of a language grammar and the strength of
the algorithm used to compute the state machine to recognize that
grammars.
- See Also:
- Serialized Form
Field Summary |
static int |
REDUCE_REDUCE
Type of AmbiguityException to indicate a reduce-reduce
conflict. |
static int |
SHIFT_REDUCE
Type of AmbiguityException to indicate a shift-reduce
conflict. |
static int |
SHIFT_SHIFT
Type of AmbiguityException to indicate a shift-shift
conflict. |
Constructor Summary |
AmbiguityException(int type,
String msg)
Constructs a new AmbiguityException with the given message. |
SHIFT_SHIFT
public static final int SHIFT_SHIFT
- Type of AmbiguityException to indicate a shift-shift
conflict.
SHIFT_REDUCE
public static final int SHIFT_REDUCE
- Type of AmbiguityException to indicate a shift-reduce
conflict.
REDUCE_REDUCE
public static final int REDUCE_REDUCE
- Type of AmbiguityException to indicate a reduce-reduce
conflict.
AmbiguityException
public AmbiguityException(int type,
String msg)
- Constructs a new AmbiguityException with the given message.
getType
public int getType()