|Semantic actions/attributes and LR parsers email@example.com (1995-03-21)|
|From:||firstname.lastname@example.org (Rick Nelson)|
|Date:||Tue, 21 Mar 1995 15:27:25 GMT|
The approach for implimenting semantic actions (introducing epsilon
productions) in LR parsers can cause grammar conflicts. Attribute
grammars also are problematic.
This fact is well known, but how often does it really come up? How
much of a pain is it to re-work the grammar (or do you switch to an
LL based parser?)
I'm looking for examples, real or contrived (fractions of grammars
OK) where this happens - and the hack(s) required to bypass it.
Please email if possible, I'd like to combine/summarize (will munge
grammars or elide your example if requested).
Return to the
Search the comp.compilers archives again.