You should write a program to generate the correct output for a given input as described above. You should start by writing the parser and make sure that it correctly parses the input before attempting to implement the rest of the project.

You should write a program to generate the correct output for a given input as described above. You should
start by writing the parser and make sure that it correctly parses the input before attempting to implement
the rest of the project.
You will be provided with a number of test cases. Since this is the first project, the number of test cases
provided with the project will be relatively large.
5 Instructions
Follow these steps:
• Download the lexer.cc, lexer.h, inputbuf.cc and inputbuf.h files accompanying this project
description. Note that these files might be a little dierent from the code you’ve seen in class or
elsewhere.
• Compile your code using GCC on Ubuntu 18 (Ubuntu). You will need to use the g++ command to
compile your code in a terminal window. See section 4 for more details on how to compile using GCC.
Note that you are required to compile and test your code on Ubuntu using the GCC compiler.You are free to use any IDE or text editor on any platform, however, using tools available on Ubuntu
(or tools that you could install on Ubuntu) could save time in the development/compile/test cycle.
• Test your code to see if it passes the provided test cases. You will need to extract the test cases from
the zip file and run the test script test1.sh. See section 5 for more details.
• Submit your code on the course submission website before the deadline. You can submit as many times
as you need. Make sure your code is compiled correctly on the website, if you get a compiler error, fix
the problem and submit again.
• Only the last version you submit is graded. There are no exceptions to this

WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top