Question: Create an interpreter in your language ( java , C + + , python ) that must perform scanning and parsing of a given code

Create an interpreter in your language (java, C++, python) that must perform
scanning and parsing of a given code
The program reads the code from a txt file.
The program scans the text file line by line generates tokens and displays the
tokens and their category (identifiers, keywords, assignment, number, add operator, multi-operator).
The program also checks the expression grammar based on calculator language given on slide number 20 from Chapter 2.
If the expression does not match the grammar it will display an error
You must submit the interpreter's complete code and a report either in pdf or word document. The report contains the code and the screenshot of the running program with the output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!