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

This is a reverse of designate that strips an existing production from a label.

Syntax

unlabel:
        label

Example

Unlike designate, this transformation relies on the fact that all labels are unique within a grammar. This assumption allowed us to simplify the calling syntax. So, given the input:

[intexpr] expr:
        int

After using this transformation:

unlabel([intexpr]);

Will look like this:

expr:
        int

Relevant files

See also

  • Unlabel is a part of XBGF

Contributors

Clone this wiki locally