[antlr-interest] Filter mode and C#

Gareth Cox garethmcox at gmail.com
Sun Sep 5 15:10:03 PDT 2010


Hey Peter,

I'm basically trying to do the same thing.  Google search showed that antlr
3.2 supports filter mode and the c# build is only 3.1.  Apparently if you
get the top of the source tree there is a work in progress version.
Unfortunately I've been unable to do that from the antlr website.






On Sun, Sep 5, 2010 at 5:21 PM, Peter Andersson <claespeter at home.se> wrote:

> Hi,
>
> I've been trying to use the filter mode to do some optimization to an AST
> tree.
> I can't make it work. It seems that it doesn't use filter mode even if I
> set
> the
> filter option to true. The downup (or Downup) method also seems to be
> missing.
> I'm using C# and I saw a comment somewhere that filter mode only works with
> Java
> as the target language. Is that true?
>
> An alternative would be to use a full grammar but is it really possible in
> a
> non-filter grammar to specify special cases that are candidates for
> optimization?
> I tried to use syntactic predicates but that doesn't seem to be supported
> in
> tree grammars.
>
> Thanks for your help,
> Peter Andersson
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


More information about the antlr-interest mailing list