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.
When complete, submit your Lua source and testing files to the course Blackboard site. This is an individual assignment.
In the implementation of Expression Language 1:
Study the program carefully.
Fill in the missing pieces of the functions in the Abstract Syntax for Expressions section. These include functions related to multiplication, division, and relational comparisons.
Fill in the missing pieces of the Expression Evaluator function eval
for the above plus the if
expression
Add operations for Min
(minimum) and Max
(maximum) to the abstract syntax functions, the exprToString
function (if 'needed), and the expression evaluator. Use the infrastructure provided.
Write an improved script to thoroughly test the language including the missing pieces you supplied.
Future assignments may build on aspects of this assignment.