[antlr-interest] TokenStreamRewriteEngine and C++ and RefCounters

Ric Klaren klaren at cs.utwente.nl
Wed Apr 28 09:26:46 PDT 2004


On Wed, Apr 28, 2004 at 11:02:58PM +0700, Andrey R. Urazov wrote:
> > > Consider the code from BaseAST.cpp (the problems I experience now are
> > > caused by the implicit misuse of smart pointers in this function):
> > 
> > I'll have a look at this when I'm not two days behind on sleep... (probably
> > a lot safer ;) )
> It seems to be clean and therefore should not prevent you from sleeping.
> ;) There was no bug in the ANTLR code, just a small bug in my head :)
> probably because of lack of sleep and most certainly because of
> a strange tendency to find errors in others' code rather than in my own
> ;)

The last is always a safe presumption: in case of doubt blame others ;) But
good to hear that I can sleep safely =D

> > Shouldn't there be a '!' on this rule to turn of automatic
> > treeconstruction? (unless you have it turned off on grammar level)
> > This might create a loop in the tree which might hang up
> > getNumberOfChildren if I'm not mistaken.
> You are a clairvoyant! Exactly! This is what actually happened. Thanks
> a lot for helping me out.

No worries!

ZZZZzzZZzzz,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755  ----
-----+++++*****************************************************+++++++++-------
  Chaos is found in greatest abundance wherever order is being sought.
  --- Terry Pratchet



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list