COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Lexical analysis
|
|
Syntax analysis
|
|
Compilation
|
|
Run time
|
Detailed explanation-1: -Lexical phase error can be: Spelling error. Exceeding length of identifier or numeric constants. Appearance of illegal characters. To remove the character that should be present.
Detailed explanation-2: -Lexical phase errors Typical lexical errors are: Exceeding length of identifier or numeric constants. The appearance of illegal characters. Unmatched string.
Detailed explanation-3: -The most lexical error type found in descriptive text writing is misspelling as many as 26 or 30.23% of the whole lexical error types. This type of lexical error should receive more instruction from the teacher than the other lexical error types made by the students.
Detailed explanation-4: -Syntax errors are mistakes in the source code, such as spelling and punctuation errors, incorrect labels, and so on, which cause an error message to be generated by the compiler.