Provide a program in the target language of our compiler/interpreter that incorporates all elements of the language. It must include all of the following: • Integer, Real and Boolean literals • Every arithmetic operator: + - * / rem ** • Every relational operator: = /= > >= ‹ <= • Every logical operator: and or not • An if statement • A case statement • A reduce statement • Multiple variable declarations • Multiple parameter declarations In addition, your program should be written in a such a way that it test the associativity and precedence of all operators. It should also include nested statements. Also provide several sets of input (values for the parameters) to the program, enough so that every line of code within the program is executed at least once. Discussion questions should be written in the target language of the course. None of the examples for discussion question should be written in languages as C, C#, C++, JAVA, etc. The project for this course require a linux environment that has the compiler tools for flex and bison together with make and the Gnu g++ compiler . ( Target language ) I need perfect ans for this dont copy from other sites

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter3: Understanding Structure
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question

Provide a program in the target language of our compiler/interpreter that incorporates all elements of the language. It must include all of the following:
• Integer, Real and Boolean literals
• Every arithmetic operator: + - * / rem **
• Every relational operator: = /= > >= ‹ <=
• Every logical operator: and or not
• An if statement
• A case statement
• A reduce statement
• Multiple variable declarations
• Multiple parameter declarations
In addition, your program should be written in a such a way that it test the associativity and precedence of all operators. It should also include nested statements.
Also provide several sets of input (values for the parameters) to the program, enough so that every line of code within the program is executed at least once. 

Discussion questions  should be written in the target language of the course. None of the examples for discussion question should  be written in languages as C, C#, C++, JAVA, etc.

The project for this course require a linux environment that has the compiler tools for flex and bison  together with make and the Gnu g++ compiler .  ( Target language )

I need perfect ans for this  dont copy from other sites 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage