MCQ
Q.
The lexical analysis for a modern language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?
Correct Answer: A
Initially in lexical analysis the program is divided into tokens. Tokens can be expressed as regular expressions: [a-zA-Z] [a-zA-Z0-9]*
the keyword if is given by if.
Integers are given by [+-]? [0-9]+.