# A simple english grammar # A rule is is like: LHS -> RHS and a RHS is a sequence of # alternatives separated by vertical bars. The grammar can have # multiple rules for each LHS symbol. S -> NP VP NP -> Art N NP -> Art Adj N VP -> V VP -> V NP Art -> the | a | some | no N -> man | ball | woman | table | penguin | garden gnome | ghost | apple V -> hit | took | saw | liked | loved | painted | wanted Adj -> large | funny | weird | crazy | green | grotesque | creepy