Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

* * 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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students explore these related Databases questions