-
Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it :
(P) Syntax tree (i) Code generator (Q) Character stream (ii) Syntax analyzer (R) Intermediate (iii) Semantic analyzer representation (S) Token stream (iv) Lexical analyzer
-
- P → (ii), Q → (iii), R → (iv), S → (i)
- P → (ii), Q → (i), R → (iii), S → (iv)
- P → (iii), Q → (iv), R → (i), S → (ii)
- P → (i), Q → (iv), R → (ii), S → (iii)
- P → (ii), Q → (iii), R → (iv), S → (i)
Correct Option: C
According to the complier phase. Shown in figure below. The lexical analysis Phase Processes the character strem and generates tokens stream, these tokens are processed by syntex analysis analyzer and generate the syntex tree. these syntex tree is processed by the semantic analyzer, and generate the intermediate representation such as (3-Address code) is used for code generation process.