[antlr-interest] Summary of ANTLR Issues

Ric Klaren klaren at cs.utwente.nl
Wed Jul 9 02:17:55 PDT 2003


On Tue, Jul 08, 2003 at 04:04:06PM -0400, Tiller, Michael (M.M.) wrote:
> > Do tell ;) I must admit that while I made the cloning stuff I 
> > probably did
> > not think of all possible uses in the support lib and stuff 
> > so maybe you
> > stumbled on something I overlooked.
> 
> This was mentioned previously by someone else in the group.  I just implemented what they suggested.  It just meant changing this:
> 
>   AST(const AST& other) : ref(other.ref->increment()) {}
> 
> to this:
>         
>   AST(const AST& other) : ref(0) {}

Already fixed in snapshots.

> The problem is, what I want won't compile.  Well, at least if I include
> everything I want it won't compile.  I'm attaching two versions of
> "treewalk.g" from the "imagNodeAST" example (for C++).  The first version
> will compile (in the ANTLR sense at least) but fails during C++ compilation
> because ANTLR uses a generic interface when I want it to be smart enough to
> use the specific interface.  Another version addresses something you
> mention later on...

Thanks I will look at them.

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Wo das Chaos auf die Ordnung trifft, gewinnt meist das Chaos, weil es
  besser organisiert ist. --- Friedrich Nietzsche


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list