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

An unlabeled production is labeled. The argument production is the intended result, i.e., the labeled production rule, the transformation refuses to work if the argument production contains no label.

Labelling transformations serve two roles usually: they can be used directly to make the labels in both grammars agree so that they can converge; or they are used to mark the target for the transformations that follow them and perform local manipulations.

Syntax

designate:
        production

Example

Given the input:

expr:
        int

After using this transformation:

designate(
 [intexpr] expr:
        int
);

Will look like this:

[intexpr] expr:
        int

Relevant files

See also

  • Extract is a part of XBGF
Clone this wiki locally