Reference no: EM133914913
Problem
Read the below scenario.
Scenario
A group at a tech company was developing a new programming language designed for educational purposes. The language aimed to be easy to understand, efficient in execution, and flexible enough for various programming tasks. They were tasked with designing the language's execution model, syntax, and semantics, while also building a prototype development environment using the Racket environment. Desugaring techniques were incorporated to simplify high-level constructs, enhancing the language's usability and performance for both beginners and advanced learners. Get the instant assignment help.
Based on the above scenario, complete the following tasks.
Task I:
A. Analyze the advantages and disadvantages of using an interpreter versus a compiler for the language described in the introduction.
B. Explain the chosen execution model with diagrams and metrics. Justify how it meets the language's goals.
Task II:
A. Using formal methods and attribute grammars, specify the syntax and semantics of the language, as outlined in the introduction above.
B. Provide grammar rules and their meanings for the language. Include a code snippet and its semantic analysis.
Task III:
A. Implement a basic interpreter or compiler for your educational language in Racket.
B. Test it with sample programs, document the adaptation process and challenges, and provide a demonstration highlighting key features and functionality.