Question: For this project, you will be writing your own SIMPLE computer programming language. The coder will be writing . txt files as their code. Your

For this project, you will be writing your own SIMPLE computer programming language. The coder will be writing .txt files as their code. Your program must parse the code and execute whatever the user writes in the .txt file.
In short, the .txt file is the code, your program that you are writing will compile/run the program.
Your computer language MUST:
-Accept integers and strings
-Have user input(keyboard) and output
-Perform math computations(+/-/*///%)
-Perform conditions(just ifs are fine, int and String compare will be just fine)
-Loops(can be any type of loop and as simple as you want it to be)
-Display SIMPLE errors if the code doesnt compile
-have Line comments
Coding:
Your code can be as simple and as complicated as you want it to be, but you MUST utilize objects. The objects that you use must also make sense(no creating objects for the sake of creating objects). All code also must be commented well so anyone can easily read the code without confusion.
Readme:
After you finish, please create an instruction manual with your code. There is no length requirement to your readme, but your readme MUST explain to a brand new coder exactly how your code works.
Sample program:
Please include a sample program as a .txt file.
How to read a file using a Buffered Reader:
File file = new File(
"C:\\Users\\reva\\IdeaProjects\\compiler\\src\\sample.txt"); //your file path here
BufferedReader br = new BufferedReader(new FileReader(file));
String st = br.readLine(); //this is a line in your file

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!