29 November 2017
Due Wednesday, 29 November, 11:59 p.m
All homework and programming exercises must be prepared in accordance with the instructions given in the Syllabus. Each assignment must be submitted to your instructor by its stated deadline.
Citations: In accordance with expected scholarly and academic standards, if you reference outside textbooks, reference books, articles, websites, etc., or discuss an assignment with individuals inside or outside the class, you must document these by including appropriate citations or comments at prominent places in your submission such as in the header of the primary source file.
Identification: Put your name, course name, and assignment number as comments in each file you submit.
This is an individual assignment. When complete, submit your Haskell source and testing modules to the course Blackboard site.
Be sure to document your code appropriately using program comments. Give attention to the general instructions given above and in the Syllabus.
Read Expression Language Syntax and Semantics (Chapter 10) of the “textbook” carefully.
All students: Do exercises 1 and 4 from Expression Language Syntax and Semantics (Chapter 10) of the “textbook”.
I have already made the needed modifications to the abstract syntax module (i.e., Expr
data type) and all other Prefix Syntax modules except the Evaluator module. You will need to complete the needed changes to the evaluator module. The modified source code for the various Prefix syntax modules are linked below:
EvalExpr_hw06
(partially modified)AbSynExpr_hw06
Values
(no modification needed)Environments
(no modification needed)ParserParsePrefixExpr_hw06
LexExpr_hw06
PrefixExprREPL_hw06
(error corrected 27 Nov)Test your module thoroughly.