Take at look at Function parser for C++