parser and calculator of simple algebra string