Problem Set 1: BNF
farmyard_animal -> chick | bird chick -> peck | churp | peck churp | churp peck bird -> churp | 'three steps' | 'peck' | bird bird peck -> 'three steps' | 'peck' | peck peck churp -> 'turn left' | 'churp'
string | churp | peck | bird | chick | farmyard_animal |
turn left | |||||
three steps | |||||
three steps churp | |||||
three steps peck | |||||
turn left churp | |||||
turn left churp churp | |||||
three steps peck peck | |||||
turn left three steps three steps | |||||
turn left three steps peck | |||||
three steps turn left churp |
Put your answers to questions 2 through 8 on additional sheets of paper.
chirp peck three steps churp