COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Regular expression for an identifier is
|
(letter | digit)*
|
|
(letter)(letter | digit)*
|
|
(letter)* (letter | digit)*
|
|
(letter)+ (letter | digit)* */ . The last example includes parentheses, which are used as a memory device.
|
Explanation:
There is 1 question to complete.