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

Monty Zukowski monty at codetransform.com
Thu Feb 28 14:07:01 PST 2008


No, you write a semantic predicate to check your symbol table.  Syntax
== structure == grammar.  Anything that is a syntactic predicate looks
like a grammar fragment.

Monty

On 2/28/08, Darien Hager <darien.hager at etelos-inc.com> wrote:
> 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.
>
>


More information about the antlr-interest mailing list