Hi. There should be a faq entry on this or an example. Implement TreeAdaptor :) Ter On Feb 6, 2009, at 6:17 AM, Bruno Marc-Aurele wrote:
> Hello all, > > I am trying to do a grammar with a new base type for nodes. I can > see that I am > provided with ASTLabelType, whose value I set to Node, the name of my > CommonTree subclass. The only difference between the two classes is > the > presence of a "Accept" method. The parser, however, still creates > CommonTree > nodes (of course, the ITreeAdaptor is still a CommonTreeAdaptor). > > What would be the suggested method to make my parser create Node > objects instead > of CommonTree objects? > > Thanks a lot, > Bruno M-A. > > P.S.: I am using the C#2 target. > -- > Bruno Marc-Aurèle > courriel Poly: [email protected] > courriel perso: [email protected] > > > > > > 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 -~----------~----~----~----~------~----~------~--~---
