Package java_cup
Class nonassoc_action
java.lang.Object
java_cup.parse_action
java_cup.nonassoc_action
This class represents a shift/reduce nonassociative error within the
parse table. If action_table element is assign to type
nonassoc_action, it cannot be changed, and signifies that there
is a conflict between shifting and reducing a production and a
terminal that shouldn't be next to each other.
- Version:
- last updated: 7/2/96
- Author:
- Frank Flannery
-
Field Summary
Fields inherited from class java_cup.parse_action
ERROR, NONASSOC, REDUCE, SHIFT
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
nonassoc_action
Simple constructor.- Throws:
internal_error
-
-
Method Details
-
kind
public int kind()Quick access to type of action.- Overrides:
kind
in classparse_action
-
equals
Equality test.- Overrides:
equals
in classparse_action
-
equals
Generic equality test.- Overrides:
equals
in classparse_action
-
hashCode
public int hashCode()Compute a hash code.- Overrides:
hashCode
in classparse_action
-
toString
Convert to string.- Overrides:
toString
in classparse_action
-