Constructor and Description |
---|
PDA() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String w,
char init)
This method checks the input string for automaton and prints result step by step.
|
abstract java.lang.String |
delta(char c,
char p)
This abstract method determines and returns the next state of automaton for given char inputs.
|
public abstract java.lang.String delta(char c, char p)
c
- Input string's next char.p
- Char that poped from stack.public boolean accept(java.lang.String w, char init)
w
- Input to check if it's accepted by automaton and print.init
- Initial char to push into stack.