[antlr-interest] Re: expecting IDENT, found 'x'

John D. Mitchell johnm-antlr at non.net
Tue Mar 9 10:53:13 PST 2004


'netiquette nanny says: Top posting is Evil(tm)!
'netiquette nanny says: Trim those posts!

>>>>> "Mark" == Mark Buckle <mark.buckle at intechsolutions.co.uk> writes:
[...]

> BTW what is sematic predicate hoisting ?

"Hoisting" is the act of pulling a decision up from a sub-rule into a
decision point being made in one of the parent rules.

Hoisting semantic predicates just means that the type of decision that's
been hoisted is a disambiguating semantic decision.


Basically, the point with hoisting is that you, as the grammar writer, want
to be able to express the grammar with clarity and have the generator be
smart enough to condense the actual decision making for concision.

There are some cases in grammars using Antlr v2.x where we have to do some
funky gyrations in the grammar to make the decisions work correctly.

Hope this helps,
		John


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list