he compiler should produce a listing of the program with lexical error messages included after
the line in which they occur. Any character that cannot start any token should be considered a
lexical error. An example of compilation listing output is shown below:
1 -- Program with two lexical errors
2
3 function main a: integer returns integer;
4 b: integer is a * 2;
5 begin
6 if a <= 0 then
7 b + b;
8 else
9 b ^ b $
Lexical Error, Invalid Character ^
Lexical Error, Invalid Character $
Finally one Project of my favorite. Always and still Love Mathematics. My Logic's are good and can calculate fast. And Boolean Algebra is all about calculation and Logic's. Engg by profession and worked in electrical dept for many years then promoted to Operation field where I now look after the entire process with my day to day logical planning. Dedicated towards my work and sincere too. Never leave my work Incomplete. I am looking forward to it. Yes, New here in Freelancer but as far as Mathematics and Logic Reasoning are concerned I am confident.
Hi, I can do this. Just little more information would be required plus you have to describe which language do you want this code to be in C, C++, C#, JavaScript, PHP or any other. It sounds like student level lexical analyzer phase of compiler.