-
Notifications
You must be signed in to change notification settings - Fork 15
LAssoc
grammarware edited this page Jan 19, 2013
·
5 revisions
The same as RAssoc, but replaces an iterative production found in the grammar by a left associative repeating equivalent. The “l” in “lassoc” refers to the intended effect at the level of derivation trees: the list of subtrees is to be converted into a nested binary tree in a left-associative manner.
lassoc:
production
For instance,
[terminal] expr:
string
[sequence] expr:
expr+
After using this transformation:
lassoc(
[sequence] expr:
expr expr
);
Will look like this:
[terminal] expr:
string
[sequence] expr:
expr expr
shared/prolog/xbgf1.pro
shared/prolog/xbgf2.pro
shared/rascal/src/transform/library/Associativity.rsc
shared/xsd/xbgf.xsd
- LAssoc is a part of XBGF