public abstract static class DFA.MemAction extends Object
Actions are of two kinds: either setting some memory cell to the current position input, or copying one memory cell's contents into another.
Modifier and Type | Class and Description |
---|---|
static class |
DFA.MemAction.Copy
Represents a memory action where some memory
cell
DFA.MemAction.Copy.src must be copied into
another cell DFA.MemAction.Copy.dst |
static class |
DFA.MemAction.Set
Represents a memory action where some memory
cell
DFA.MemAction.Set.dst must be set to the current
position input |
Modifier and Type | Method and Description |
---|---|
static DFA.MemAction.Copy |
copy(int src,
int dst) |
abstract int |
getDest() |
abstract int |
getSrc() |
static DFA.MemAction.Set |
set(int dst) |
String |
toString() |
public abstract int getDest()
public abstract int getSrc()
public static DFA.MemAction.Set set(int dst)
dst
- dst
public static DFA.MemAction.Copy copy(int src, int dst)
src
- dst
- src
to memory cell dst