A simple class to parse mathematical expressions that are passed as strings