Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it:
List - I | List - II |
P. Syntax tree | (i) Code generator |
Q. Character stream | (ii) Syntax analyzer |
R. Intermediate representation | (iii) Semantic analyzer |
S. Token stream | (iv) Lexical analyzer |