This paper extends a previous paper [8] where we described a semantics for monadic recursive program schemes (also called Scott-de Bakker schemes). The method consists in considering program schemes as rewriting systems which generate subsets of a free magma and defining a mapping of such subsets in a proper domain of functions. In our previous paper, dealing with a simple case, the combinatorial properties on which the whole construction relies were well known or at least immediate corollaries of wellknown results in the theory of context-free languages. In the present case, the rewriting systems which we are led to consider, and which in a very naturalway could be called algebraic rewriting systems or grammars on a free magma, have been l...