[antlr-interest] "An Introduction to ANTLR" presentation slides

Darien Hager darien.hager at etelos-inc.com
Thu Feb 28 13:48:03 PST 2008


Hmm. So...  isnt' it possible to write a "syntactic predicate" which checks
whether the next Identifier token is a previously-defined function versus
a previously-defined variable? In that case, aren't you checking meaning
rather than form, and it is therefore is it a semantic-level predicate?

Now, academically there may be some excellent reason "syntactic predicate"
is an equally accurate term in that
case, but for myself and presumably other mere mortals it can be
confusing and seems to be vaguely out of step with the rest of the
documentation.
I think if I hadn't read this thread, "syntactic predicate" would imply to
me some relationship with the lexer rules.

I don't think it would add any negative ambiguituty to call them "grammar
predicates" or just "predicates" in the context of writing ANTLR grammar
rules.
-- 
Darien Hager
Developer
Etelos, Inc.
darien at etelos.com

http://www.etelos.com
"Revolutionizing the way applications are developed, distributed and
consumed."

This e-mail message, including attachments, may contain confidential
information for the sole use of the intended recipient(s). If you are not
the intended recipient, then this is notice that any use, disclosure,
dissemination, distribution or copying is strictly prohibited. If you have
received this message in error please contact the sender by reply mail and
destroy all copies of the original message.


This e-mail message, including attachments, may contain confidential information for the sole use of the intended recipient(s). If you are not the intended recipient, then this is notice that any use, disclosure, dissemination, distribution or copying is strictly prohibited.  If you have received this message in error please contact the sender by reply mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080228/01ccbd74/attachment.html 


More information about the antlr-interest mailing list