Pushdown::Transition::
Replace class
| Superclass | Pushdown::Transition |
A replace transition – remove all currents states from the stack and add a different one.
Attributes
- data R
The data object to pass to the
state_class‘s constructor- state_class R
The State to replace the stack members with.
Public Class Methods
Create a transition that will Replace all the states on the current stack with an instance of the given state_class.
Public Instance Methods
Apply the transition to the given stack.