implement 'compiler for arithmetic expressions'