COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Syntax analyzer can otherwise be called as
A
Scanner
B
Parser
C
Code generator
D
Code optimizer
Explanation: 

Detailed explanation-1: -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.

Detailed explanation-2: -Explanation: It is also called as Hierarchical Analysis or Parsing. 3. Syntax Analyser takes Groups Tokens of source Program into Grammatical Production.

Detailed explanation-3: -Explanation: The phase of the compiler next to the lexical analysis phase is also known as Parser.

Detailed explanation-4: -Such parsing is also known as predictive parsing.

There is 1 question to complete.