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 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 highlevel language such as Java or C The compiler itself must be written
in lexflex and must performexecute 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 arraylists, 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
