Equation tree parsing using pyparsing CFG