read complete input line
refactored calculator and parser