1.

What is the function of the syntax phase?(a) recognize the language and to cal the appropriate action routines that will generate the intermediate form or matrix for these constructs(b) Build a literal table and an identifier table(c) Build a uniform symbol table(d) Parse the source program into the basic elements or tokens of the languageThis question was addressed to me by my college professor while I was bunking the class.My question is based upon Syntax-Directed Definitions and Translations in portion Syntax Directed Definition and Translations of Compiler

Answer»

Correct answer is (a) recognize the language and to cal the appropriate action ROUTINES that will GENERATE the intermediate FORM or matrix for these constructs

Easiest explanation: In this phase symbol table is created by the COMPILER which contains the list of lexemes or TOKENS.



Discussion

No Comment Found

Related InterviewSolutions