UP | HOME

HW16
COP-3402

Using the example of the interpreter from class (the Compiler Basics lecture)as a starting point, write an interpreter in C that can compute the value of expressions like 9/2, 2^7, and 3+4, for single arithmetic expressions on single digits using the operators + for addition, - for subtraction, * for multiplication, / for division, % for modulo, and ^ for exponentation.

Author: Paul Gazzillo

Created: 2025-10-15 Wed 12:59

Validate