-
Notifications
You must be signed in to change notification settings - Fork 15
Unlabel
grammarware edited this page Jan 18, 2013
·
5 revisions
This is a reverse of designate that strips an existing production from a label.
unlabel:
label
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
shared/xsd/xbgf.xsd
shared/prolog/xbgf1.pro
shared/prolog/xbgf2.pro
shared/rascal/src/transform/library/Labels.rsc
- Unlabel is a part of XBGF