Metacircular evaluator in Haskellon of mceval. Your mceval should include at minimum: function application, function definition, and primitives for basic arithmetic. You can implement additional things if you want.
Added by Christopher H.
Step 1
Here’s a step-by-step guide to building this evaluator. Show more…
Show all steps
Your feedback will help us improve your experience
Dominador Tan and 81 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
$\mu$ Scheme closures represented as ML functions. Change the evaluation of lambda expressions so that evaluating a LAMBDA produces an ML function of type exp* value list $\rightarrow$ value. (The exp parameter should be ignored.) That's the same type as a primitive function, so with this change, evaluating a LAMBDA can produce a PRIMITIVE, not a CLOSURE. On the strength of this trick, rename PRIMITIVE to FUNCTION, and eliminate CLOSURE from the interpreter. Identify the advantages of this simplification. Identify the drawbacks.
'evaluate................. ... @ [ ( I+"+X m +m In 1'
Manisha S.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD