A unified algebraic approach to integral and discrete evolution equations