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

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

Syntax

inject:
        marked-production

Example

Given the input:

a:
        b d

After using this transformation:

inject(
 a:
        b <c> d
);

Will look like this:

a:
        b c d

Relevant files

See also

  • Inject is a part of XBGF

Contributors

Clone this wiki locally