next up previous contents
Next: 2.3.3.4 Macro Paths and Up: Macro COSY Previous: 2.3.3.2 The Collectivisors

2.3.3.3 The Body-Replicators

So far we have encountered a simple form of replicator in replicator array declarations. Bodyreplicators are another kind of replicator and generate consecutive regularities consisting of paths and/or processes, or rather macro paths and/or processes to be more precise. Nesting of bodyreplicators will also be allowed.

Their syntax is formally given by:

displaymath5383

Using the above rule we can, for example, specify m pipelines of size k each, associated with a mechanism controlling access to a critical section similar to that in tex2html_wrap_inline5391 :

displaymath5384

We impose the following restriction BRrest on bodyreplicators:

(BRrest)
The range of the bodyreplicator indices should be non empty,

ensuring that bodyreplicators generate at least one regularity upon expansion. This is important, for a macro program body could consist of just bodyreplicators which upon expansion should generate a non-empty basic program body.



Peter Lauer
Mon Jul 22 17:29:46 EDT 1996