The warning "Semantic predicates were present but were hidden by
actions." is issued without any line# if any rule has a semantic
predicate before the first token and the predicate is preceeded by any
action. In a large grammar this can be very difficult to locate.

This message is also incorrect since the actual problem is that ANTLR
cannot hoist the predicate into a parent rule if there is an
intervening action. This condition is distinct from the other cause of
"Semantic predicates were present but were hidden by actions." where
there are insufficient predicates to disambiguate the grammar. This
case of the "Semantic predicates" message should be changed to
something like "Semantic Predicate on line[nnn] cannot be hoisted due
to a preceeding action."

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to