I do not understand the arrows in the PDA graph...
I have a PDA that accepts all strings with parentheses nested like ((((()))))
, (())
, ((()))
etc. It has two states where the first state has an arrow that loops and the behavor of this is described as (,ε/(
.
For what I could see, this description would accept the (
sign if there is an ε on the top of the stack, and if there is, the ε
would be replaced with (
.
So if the stack looked like this in the beginning:
ε
it looks like this now:
(ε
How can it be so that this loop arrow keep accepting every (
sign even if the ε
is not at the top of the stack anymore?