Suppose we have three tokens consisting of (1) the keyword while, (2) the keyword when, and (3)

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

1) Suppose we have two tokens: (1) the keyword i f , and (2) identifiers, which are strings of letters other than i f . Show:

a) The NFA for these tokens, and

b) The DFA for these tokens.

2) Suppose we have three tokens consisting of (1) the keyword while, (2) the keyword when, and (3) identifiers consisting of strings of letters and digits, beginning with a letter.

Show:

a) The NFA for these tokens, and

b) The DFA for these tokens.