# Naive but nasty sentence grammar nonterminal S String nonterminal NP String nonterminal VP String nonterminal Noun String nonterminal Verb String nonterminal Det String terminal me you it computers compiler a the hate despises is hacks hacker topsym S S --> NP VP NP --> Det Noun VP --> Verb NP Det --> Det --> a Det --> the Noun --> me Noun --> you Noun --> it Noun --> computers Noun --> compiler Noun --> hacker Verb --> hate Verb --> despises Verb --> is Verb --> hacks EOF This grammar is SLR, should have 20 or 21 states, and 29 for LR(1). Try to parse: you hate me hacker hacks the computers hacker despises the compiler is hate it (should not be parsable)