[antlr-interest] Semantic predicates during AST construction

Jim Idle jimi at temporal-wave.com
Sun Oct 5 16:25:25 PDT 2008


On Sun, 2008-10-05 at 15:16 +0200, Oliver B. Fischer wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Dear all,
> 
> I found an old post to this list, suggesting to support semantic
> predicates during AST construction:
> http://www.antlr.org/pipermail/antlr-interest/2005-January/011050.html
> (See: > 4.)  Alternatives and construction predicates:  ^{ {<test>}? A |
> B })
> 
> Has this features been implemented? This is exactly what I need now... ;-)



It isn't clear what you are asking for - that post is from 2005.

Do you mean you want to know how to use semantic predicates, or that you
want to know how to conditionally create one type of tree over another:

{ predicate1 }? -> ^(THIS)
{ predicate2 }? -> ^(OR THAT)
-> ELSE


Jim

> 
> 
> Bye
> 
> Oliver
> 
> - --
> Oliver B. Fischer, Schönhauser Allee 64, 10437 Berlin
> Tel. +49 30 44793251, Mobil: +49 178 7903538
> Mail: o.b.fischer at gmx.de Blog: http://www.sw-blog.net
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkjovKcACgkQbyc4N0PdoAza2ACgp9hGnv7InQ4rSc76mTZrqr0U
> +sAAoKDx27Zgd8SAACarZAAM9B3E2yPF
> =qGYa
> -----END PGP SIGNATURE-----
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081005/7718d668/attachment.html 


More information about the antlr-interest mailing list