Grammar → PDA
Hopcroft 2e §6.3.1, Thm 6.13. Grammars and pushdown automata define the same languages, and this construction is the easy half: one state, the start symbol on the stack, and the stack thereafter holds exactly the unmatched tail of a leftmost derivation. Run the machine it builds and watch the derivation happen on the stack.
Presets:
1 variables {S}, 2 terminals {a, b}, start S — 2 productions.
Narration
Enter a string and press Run to step through the machine.