Package java_cup
Class nonassoc_action
- java.lang.Object
-
- java_cup.parse_action
-
- java_cup.nonassoc_action
-
public class nonassoc_action extends parse_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 Constructor Description nonassoc_action()Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(parse_action other)Equality test.booleanequals(java.lang.Object other)Generic equality test.inthashCode()Compute a hash code.intkind()Quick access to type of action.java.lang.StringtoString()Convert to string.
-
-
-
Constructor Detail
-
nonassoc_action
public nonassoc_action() throws internal_errorSimple constructor.- Throws:
internal_error
-
-
Method Detail
-
kind
public int kind()
Quick access to type of action.- Overrides:
kindin classparse_action
-
equals
public boolean equals(parse_action other)
Equality test.- Overrides:
equalsin classparse_action
-
equals
public boolean equals(java.lang.Object other)
Generic equality test.- Overrides:
equalsin classparse_action
-
hashCode
public int hashCode()
Compute a hash code.- Overrides:
hashCodein classparse_action
-
toString
public java.lang.String toString()
Convert to string.- Overrides:
toStringin classparse_action
-
-