Using compiler technology to write a calculator.