com.inxar.syntacs.automaton.pushdown
Class MesoArrayDPA
java.lang.Object
|
+--com.inxar.syntacs.automaton.pushdown.MesoArrayDPA
- All Implemented Interfaces:
- DPA, Serializable
- public class MesoArrayDPA
- extends Object
- implements DPA, Serializable
Concrete DPA
implementation which uses meso-array
parse tables.
- See Also:
- Serialized Form
Fields inherited from interface org.inxar.syntacs.automaton.pushdown.DPA |
START_STATE |
Constructor Summary |
MesoArrayDPA(int[][] action,
int[][] go,
int[] actions)
Constructs the MesoArrayDPA on the given action
transition table, go transition table, and action table. |
Method Summary |
Action |
action(int state_num,
int symbol)
Returns the Action associated by traversing the
path given from the given state over the given symbol. |
int |
go(int state_num,
int symbol)
Returns the state reached upon transition after reduction to
the given nonterminal . |
action
public int[][] action
go
public int[][] go
actions
public int[] actions
MesoArrayDPA
public MesoArrayDPA(int[][] action,
int[][] go,
int[] actions)
- Constructs the
MesoArrayDPA
on the given action
transition table, go transition table, and action table.
action
public Action action(int state_num,
int symbol)
- Description copied from interface:
DPA
- Returns the
Action
associated by traversing the
path given from the given state over the given symbol. The
Action
object returned should never be
null
but may be the error
action.
- Specified by:
action
in interface DPA
go
public int go(int state_num,
int symbol)
- Description copied from interface:
DPA
- Returns the state reached upon transition after reduction to
the given
nonterminal
.
- Specified by:
go
in interface DPA