Chapter 13: Q32E (page 857)
Give production rules in Backus–Naur form for the name of a person if this name consists of a first name, which is a string of letters, where only the first letter is uppercase; a middle initial; and a last name, which can be any string of letters.
Short Answer
The production rules in Backus–Naur form for the name of a person.
\(\begin{array}{l}{\bf{ < first name > < middle name > < last name > }}\\{\bf{ < uppercase letter > letter string < middle name > < last name > }}\\{\bf{J < letter string > < middle name > < last name > }}\\{\bf{James < middle name > < last name > }}\\{\bf{James k < last name > }}\\{\bf{James k roggs}}{\bf{.}}\end{array}\)