Skip to content
grammarware edited this page Jan 19, 2013 · 5 revisions

The argument production defines the intended result of the transformation — a production rule that has the same components in the sequential composition, but in a different order, when compared to the corresponding production in the input grammar with the same defined nonterminal and the same label, if any.

Syntax

permute:
        production

Example

Given the input:

a:
        b d* c

After using this transformation:

permute(
 a:
        b c d*
);

Will look like this:

a:
        b c d*

Relevant files

See also

  • Permute is a part of XBGF

Contributors

Clone this wiki locally