public class GoTo extends Object
NonTerminal.
A non-terminal actually has a set of states.
The purpose of the list of gotos in a non-terminal is for table generation
purposes. It can actually reflect the fact that the gotos reflect the
packed nature of the parser.| Constructor and Description |
|---|
GoTo(int origin,
int destination)
Construct the GoTo
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDestination() |
int |
getOrigin() |
void |
setDestination(int destination) |
void |
setOrigin(int origin) |
public GoTo(int origin,
int destination)
origin - is the from statedestination - is the to statepublic int getOrigin()
public void setOrigin(int origin)
origin - the origin to setpublic int getDestination()
public void setDestination(int destination)
destination - the destination to setCopyright © 2017. All rights reserved.