JBoss Community Archive (Read Only)

Scribble

Recursion

Recursion is supported in the protocol definition by defining a
'rec' keyword with a label prior to a block, that defines the scope of the recursive
behaviour, and at some point in the enclosed behaviour, the
same label is used to show where the recursion
should be performed. The label can only be used within the
scope of the recursion block to which the label has been
associated.

rec <Label> "{"
    ...
    <Label> ";"
"}"

The following example shows a recursion construct defined using the
label 'Transaction'. Within the associated block, the recursion is
triggered by the 'Transaction' clause.

rec Transaction {
    ...
	Transaction;
}
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:37:58 UTC, last content change 2011-05-24 08:40:20 UTC.