INTRODUCTION TO COMPILER DESIGN
KEY COMPONENTS OF A COMPILER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
TRUE
|
|
FALSE
|
|
May be
|
|
Can’t say
|
Detailed explanation-1: -Syntax Analyser takes Groups Tokens of source Program into Grammatical Production. Explanation: It Groups Tokens of source Program into Grammatical Production. Sanfoundry Certification Contest of the Month is Live.
Detailed explanation-2: -9. What does a Syntactic Analyser do? Explanation: Syntax analyzer will just create a parse tree. Semantic Analyzer checks the meaning of the string parsed.
Detailed explanation-3: -The parser (syntax analyzer) receives the source code in the form of tokens from the lexical analyzer and performs syntax analysis, which create a tree-like intermediate representation that depicts the grammatical structure of the token stream. Syntax analysis is also called parsing.
Detailed explanation-4: -Which of the following phase of the compiler is Syntax Analysis? Explanation: It is the Second Phase of the Compiler after Lexical Analyzer. It is also called Hierarchical Analysis or Parsing.