Arithmetic expressions interpreter and compiler