def visit_term(self, node, children):
        if self.debug:
            print("Term {}".format(children))
        term = children[0]
        for i in range(2, len(children), 2):
            if children[i-1] == "*":
                term *= children[i]
            else:
                term /= children[i]
        if self.debug:
            print("Term = {}".format(term))
        return term
Divides or multiplies factors.
dataset/ETHPy150Open igordejanovic/Arpeggio/examples/calc/calc.py/CalcVisitor.visit_term