Context-Free Grammar vs. Context-Sensitive Grammar
Theorem: For any context-free grammar
Automaton with a stack
INT → 0 | [1-9] [0-9]*
PLUSEXP → EXP '+' EXP
PARENEXP → '(' EXP ')'
EXP → INT | PLUSEXP | PARENEXP
START → EXP














'#' indicates the end of the input.
NPDAs are more expressive than DPDAs.
NPDAs are more expressive than DPDAs.