Scanner and parsing program for calculator language