[antlr-interest] advocacy of C++ support in ANTLR 3.x

Gavin Lambert antlr at mirality.co.nz
Mon Mar 31 00:13:24 PDT 2008


At 12:38 31/03/2008, Jim Idle wrote:
>You will probably find it best to override pANTLR3_COMMON_TREE by 
>encapsulating this within your own structure, as per the docs. 
>This, as all the structures are, is a set of pointers to 
>functions and you need only override the ones that you have to, 
>just as in Java. Runtime type checking 'can' be an overhead, so i 
>am not sure you would want to do that anyway, but I will 
>contemplate your suggestion of course as it has some merit.

It would probably be helpful to those people who want to do 
heterogeneous trees.  (I'm not one of them, but I've heard they 
exist somewhere.)



More information about the antlr-interest mailing list