Question: A. Write a program in C language which handles possible errors (error handling) in the lexical analyzer that you will do. To have an idea
A. Write a program in C language which handles possible errors (error handling) in the lexical analyzer that you will do. To have an idea what you need to do, these are some examples of the possible errors:
- error in structure - missing operators - unbalanced parenthesis - typo errors (whlie instead of while)
B. Your lexical analyzer should be able to analyze the error and print what kind of error you had. It must recognize all errors you can encounter. (eg. Syntax error)
C. For each part of your code, provide a comment line to explain what is the purpose of that code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
