1.

Uniform symbol table _________(a) Has all constants in the program(b) Permanent table of rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure(c) Consists of full or partial list of the tokens as they appear in the program created by Lexical analysis and used for syntax analysis and interpretation(d) A permanent table which has all key words and special symbols of the language in symbolic formI have been asked this question during an interview.My question is based upon LR Parser in section Bottom Up Parsing of Compiler

Answer»

Correct answer is (c) Consists of full or partial list of the tokens as they appear in the PROGRAM created by Lexical analysis and USED for syntax analysis and interpretation

Easy explanation: Each pass SCANS the program, the FIRST pass generates the symbol table and the second pass generates the machine CODE.



Discussion

No Comment Found

Related InterviewSolutions