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