Question: Task Description Your task is to implement a parser using table - driven parsing, using C programming language, called parser.c , that works correctly
Task Description
Your task is to implement a parser using tabledriven parsing, using programming language, called
"parser.c that works correctly with "scanner.c
When executing your programs, it can take a calculator language program with comments and find if it
has lexical errors and syntax errors or not.
Please compile both programs by typing
gcc parser.c scanner.c o parser
To run the program, the user will type at command line:
parser prog
where prog is the name of the calculator program to be checked input by the user.
Next, your program should output error messages indicating any lexical or syntax error in the
calculator program; otherwise, output a No lexical and syntax error." message.
For example, below calculator program below, called "prog is both lexically and syntactically
correct:
prog
read a
read b
area :
perimeter :
write area
write perimeter
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
