I need descriptive answer not copied ans from other sites and please follow the instructions .Discussion questions f should be written in the target language of the course. None of the examples for this discussion are to be written in languages as C, C#, C++, JAVA,  The projects for this course require a Linux environment that has the compiler tools flex and bison together with make and the GNU g++ compiler. Explain what Linux environment you plan to use and post a screen shot demonstrating that your environment has the required tools. The language that you will be expected to write a compiler for is a language created for this course. A functional language was chosen because such languages can be easily interpreted without generating any intermediate code. It is important that you understand the language first, so examine the syntax rules . Write a short program in this language that contains one function, and has at least one input, one variable and one conditional expression. Show the output of that program on two different inputs. Here is an example of the kind of program that I am looking for: - Simple Program with one function function main a: integer returns integer; b: integer is a * 2; begin if a <= 0 then b + b; else b* b; endif; end; If this program is run with an input of 3, it returns 36. If it is run with an input of -3, it returns -12. If you have any questions on the semantics of this language, post your question as a response to this. Please provide refernce at the end as well. Please provide the reference must  and entertain every part of this question .

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need descriptive answer not copied ans from other sites and please follow the instructions .Discussion questions f should be written in the target language of the course. None of the examples for this discussion are to be written in languages as C, C#, C++, JAVA, 
The projects for this course require a Linux environment that has the compiler tools flex and bison together with make and the GNU g++ compiler. Explain what Linux environment you plan to use and post a screen shot demonstrating that your environment has the required tools.
The language that you will be expected to write a compiler for is a language created for this course. A functional language was chosen because such languages can be easily interpreted without generating any intermediate code. It is important that you understand the language first, so examine the syntax rules . Write a short program in this language that contains one function, and has at least one input, one variable and one conditional expression. Show the output of that program on two different inputs. Here is an example of the kind of program that I am looking for:
- Simple Program with one function
function main a: integer returns integer;
b: integer is a * 2;
begin
if a <= 0 then b + b;
else
b* b; endif;
end;
If this program is run with an input of 3, it returns 36. If it is run with an input of -3, it returns -12. If you have any questions on the semantics of this language, post your question as a response to this. Please provide refernce at the end as well. Please provide the reference must  and entertain every part of this question .

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Properties of Different Architectures
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education