Multiple choice

The front end of toy compiler performs to (i) determine validate of a source statement from the viewpoint of the analysis (ii) determine the content of a source statement (iii) construct a suitable representation of the source statement for use by subsequent analysis function or by the synthesis phase of the language processor

  1. (i), (iii)

  2. (ii), (iii)

  3. (i), (ii)

  4. (i), (ii), (iii)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The front end performs lexical and syntax analysis (validating statements), semantic analysis (determining content/meaning), and constructs intermediate representation for subsequent phases. All three functions are part of front-end processing.