COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

COMPILATION PROCESS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
the program is checked to ensure it conforms to the syntax rules. for example an error would appear if a semi-colon was missing
A
Lexical analysis
B
syntax analysis
C
semantic analysis
D
code generation
Explanation: 

Detailed explanation-1: -A translator is a program that (1) checks the syntax of your program to make sure the programming language was used correctly, giving you all the syntax-error messages, called diagnostics, and (2) then translates your program into a form the computer can understand.

Detailed explanation-2: -How to Fix It: If a syntax error appears, check to make sure that the parentheses are matched up correctly. If one end is missing or lined up incorrectly, then type in the correction and check to make sure that the code can be compiled. Keeping the code as organized as possible also helps.

Detailed explanation-3: -Inappropriate comma usage. Misplaced or inappropriately used punctuation can instantly change the meaning of phrases and the way a sentence reads aloud. Using sentence fragments instead of complete sentences. Squinting modifiers. 11-Aug-2021

There is 1 question to complete.