java_cup
Class reduce_action
public class reduce_action
This class represents a reduce action within the parse table.
The action simply stores the production that it reduces with and
responds to queries about its type.
Version:
- Scott Hudson
_reduce_with
protected production _reduce_with
The production we reduce with.
reduce_action
public reduce_action(production prod)
throws internal_error
Simple constructor.
prod
- the production this action reduces with.
equals
public boolean equals(Object other)
Generic equality test.
- equals in interface parse_action
hashCode
public int hashCode()
Compute a hash code.
- hashCode in interface parse_action
kind
public int kind()
Quick access to type of action.
- kind in interface parse_action
reduce_with
public production reduce_with()
The production we reduce with.
toString
public String toString()
Convert to string.
- toString in interface parse_action