Chapter 0: Q22E (page 1)
In certain programming languages, comments appear between delimiters such as #and . Let Cbe the language of all valid delimited comment strings. A member of Cmust begin with and end with but have no intervening . For simplicity, assume that the alphabet for Cis .
a. Give aDFA that recognizes C.
b. Give a regular expression that generates C.
Short Answer
Evaluate all acceptable restricted commented strings inside the language .