Question: * * please make sure to have 3 seperate files. one of them is the lex, one is yacc, and the other is the main

**please make sure to have 3 seperate files. one of them is the lex, one is yacc, and the other is the main program. please attach commands of ubuntu with each step. The requirements for the compiler are as follows:
each student is required to implement a compiler for a small
subset of high-level language such as Java or C. The compiler itself must be written
in lex/flex and must perform/execute the following:
Basic binary operations (+,-,*,/,...etc).
Basic relational operations (>,<,>=,<=,...etc).
Basic logical operations (&&,||, not, ...etc).
Selection statements (if, switch, ...etc.)
Repetition (loop) statements (for, while, ...etc).
Structures (arrays, array-lists, sets, maps, ...etc.)
Different data types (int, string, char, ...etc.).

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!