CFG from rules to parse trees
context-free grammars · parsing strategies · derivations
Bottom-up (shift–reduce)
How it works →169 steps · 2 parses found for “the man saw a dog with a telescope”.
Step 1 / 169
- Stack
top on the right - Input
words read so far
All 169 steps
2 parse trees
Parse 1
[S [NP [Det the] [N man]] [VP [V saw] [NP [Det a] [N dog]] [PP [P with] [NP [Det a] [N telescope]]]]]
Parse 2
[S [NP [Det the] [N man]] [VP [V saw] [NP [Det a] [N dog] [PP [P with] [NP [Det a] [N telescope]]]]]]