UP | HOME

HW15
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 and Brent Pappas

Created: 2026-07-12 Sun 08:04

Validate