Simple Arithmetic Parser in C