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 <[email protected]> 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 > 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.
