Operating Systems Concepts - Engineering

Q1:

In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with

A recognition of basic syntactic constructs through reductions.

B recognition of basic elements and creation of uniform symbols

C creation of more optional matrix.

D use of macro processor to produce more optimal assembly code

E None of the above

ANS:B - recognition of basic elements and creation of uniform symbols

The lexical analyzer is the first phase of compiler. Its main task is to read the input characters and produces output a sequence of tokens that the parser uses for syntax analysis.