def p_unaryExpr_uminus(self, p): '''unaryExpr : '-' unaryExpr''' p[0] = AST(sympy.Mul(sympy.Integer(-1),p[2].sympy), p[2].astUnit)