Write an alternative implementation for the AST for Arithlang, one in which CompoundArithExp stores a field of

Question:

Write an alternative implementation for the AST for Arithlang, one in which CompoundArithExp stores a field of enum type OperatorKind, modeling the concrete operator with four values, Add, Sub, Mult, and Div.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: