A multivariate expression parser and evaluator for D1/D2