Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 compilerun the program.
Your computer language MUST:
Accept integers and strings
Have user inputkeyboard and output
Perform math computations
Perform conditionsjust ifs are fine, int and String compare will be just fine
Loopscan 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 senseno 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:UsersrevaIdeaProjectscompilersrcsampletxt; your file path here
BufferedReader br new BufferedReadernew FileReaderfile;
String st brreadLine; this is a line in your file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started