Consider Following Type Data Expr1 Val1 Int Add1 Expr1 Expr1 Sub1 Expr1 Expr1 Please Creat Q37072709

Consider the following type:

data Expr1 = Val1 Int | Add1 Expr1 Expr1 | Sub1 Expr1 Expr1

please create a Expr2 type constructor thatalso supports multiplication and division, in addition to the intliteral, addition, and subtraction


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.