org.metasyntactic.math.automata
Class LRParseTable.Shift

java.lang.Object
  |
  +--org.metasyntactic.math.automata.LRParseTable.Action
        |
        +--org.metasyntactic.math.automata.LRParseTable.Shift
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
LRParseTable

public static class LRParseTable.Shift
extends LRParseTable.Action

If action[am, ai] = shift s, the parser executes a shift move. The shift moves consists of the parser shifting both the current input symbol ai and the next state s, which is given in action[am, ai], onto the stack; ai+1 becomes the current input symbol.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.metasyntactic.math.automata.LRParseTable.Action
state
 
Constructor Summary
protected LRParseTable.Shift(java.lang.Object state)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LRParseTable.Shift

protected LRParseTable.Shift(java.lang.Object state)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class LRParseTable.Action

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class LRParseTable.Action

hashCode

public int hashCode()
Specified by:
hashCode in class LRParseTable.Action