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:
Related Book For
An Experiential Introduction To Principles Of Programming Languages
ISBN: 9780262045452
1st Edition
Authors: Hridesh Rajan
Question Posted: