He recently wrote a small C++ library for parsing and analyzing mathematical expressions called Lepton (http://simtk.org/ home/lepton) that has been incorporated into OpenMM.