COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

COMPILATION PROCESS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The code is checked against the rules in:
A
Lexical Analysis
B
Syntax Analysis
C
Code Generation
D
Code Optimisation
Explanation: 

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

There is 1 question to complete.