Design and Implement an Interpreter for MicroR Project
Order ID:89JHGSJE83839 Style:APA/MLA/Harvard/Chicago Pages:5-10 Instructions:
Design and Implement an Interpreter for MicroR Project
Design and implement an interpreter for MicroR in any programming language of your choice. This will consist of the following steps.
(a) In Assignment #3, you have produced a syntax tree in Cambridge Polish prefix form. This will be input to the interpreter here.
(b) You will implement semantics of MicroR in the style of the Core semantics presented in class.
- Construct a set of interpretation routines for each general root symbol in the syntax trees. For example, you need a routine to interpret the if statement, one for arithmetic operators, etc. Each interpretation routine will perform the actions specified in the semantics. For example, an if statement will evaluate the condition and then either the then or else part depending on whether the condition is true.
- Some type checking will be required, for example to distinguish list types from integers. In the case of any errors, your interpreter need only print an appropriate error message and halt.
(c) Your store will need to allow variables to be mapped to either integers or lists of integers and keep track of the type of the variables as well. Only integers may be input or output.
(d) Your output will be the output file produced by the interpreter (i.e., a list of integers) and should be the same as that produced by running R.
Suggestion: Develop this incrementally over the following steps. • Make your interpreter work first for assignment statements involving expressions without function calls. • Next handle if-then-else and while statements. • Then handle expressions calling functions without parameters, including recursion. • Lastly implement the function calls which involve parameter passing.
I have included assignment 3 which is needed to do this assignment in the attachment
RUBRIC
Excellent Quality
95-100%
Introduction 45-41 points
The background and significance of the problem and a clear statement of the research purpose is provided. The search history is mentioned.
Literature Support
91-84 points
The background and significance of the problem and a clear statement of the research purpose is provided. The search history is mentioned.
Methodology
58-53 points
Content is well-organized with headings for each slide and bulleted lists to group related material as needed. Use of font, color, graphics, effects, etc. to enhance readability and presentation content is excellent. Length requirements of 10 slides/pages or less is met.
Average Score
50-85%
40-38 points
More depth/detail for the background and significance is needed, or the research detail is not clear. No search history information is provided.
83-76 points
Review of relevant theoretical literature is evident, but there is little integration of studies into concepts related to problem. Review is partially focused and organized. Supporting and opposing research are included. Summary of information presented is included. Conclusion may not contain a biblical integration.
52-49 points
Content is somewhat organized, but no structure is apparent. The use of font, color, graphics, effects, etc. is occasionally detracting to the presentation content. Length requirements may not be met.
Poor Quality
0-45%
37-1 points
The background and/or significance are missing. No search history information is provided.
75-1 points
Review of relevant theoretical literature is evident, but there is no integration of studies into concepts related to problem. Review is partially focused and organized. Supporting and opposing research are not included in the summary of information presented. Conclusion does not contain a biblical integration.
48-1 points
There is no clear or logical organizational structure. No logical sequence is apparent. The use of font, color, graphics, effects etc. is often detracting to the presentation content. Length requirements may not be met
You Can Also Place the Order at www.collegepaper.us/orders/ordernow or www.crucialessay.com/orders/ordernow Design and Implement an Interpreter for MicroR Project
Design and Implement an Interpreter for MicroR Project