D0L system as rewriter