engineering recuitment NIC NIELIT Scientist B 2023 Mock Test Compiler Design Intermediate Code Generation Syntax Tree
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 steam |
(ii) |
Syntax analyzer |
|
(R) |
Intermediate representation |
(iii) |
Semantic analyser |
|
(S) |
Token stream |
(iv) |
Lexical analyzer |
1
P → (ii), Q → (iii), R → (iv), S → (i)
2
P → (ii), Q → (i), R → (iii), S → (iv)
3
P → (iii), Q → (iv), R → (i), S → (ii)
4
P → (i), Q → (iv), R → (ii), S → (iii)