Operating Systems Concepts

Q1: The function(s) of the Syntax phase is(are)

A to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs.

B to build a literal table and an identifier table

C to build a uniform symbol table

D to parse the source program into the basic elements or tokens of the language.

E None of the above

ANS:A - to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs.

A syntax analyzer or parser takes the input from a lexical analyzer in the form of token streams.

The parser analyzes the source code (token stream) against the production rules to detect any errors in the code. The output of this phase is a parse tree.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.