[antlr-interest] Changing the base node type
parrt at cs.usfca.edu
Fri Feb 6 07:55:57 PST 2009
Hi. There should be a faq entry on this or an example. Implement
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
> presence of a "Accept" method. The parser, however, still creates
> 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: bruno.marc-aurele at polymtl.ca
> courriel perso: bruno.m-a at hotmail.com
> 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