[antlr-interest] Re: C++ version, == nullAST

Ric Klaren klaren at cs.utwente.nl
Wed Oct 3 07:24:12 PDT 2001

On Wed, Oct 03, 2001 at 04:30:41PM +0300, Ruslan Zasukhin wrote:
> I still did not get answer on this.

Sorry it got snowed under a little...

> > RefCount nullASt

I'm not sure why it is used... It looks like they used it to have one null
pointer refcounted object?

It's defined in BaseAST with a comment about it being nasty but making
codegen easier.. It's not something I particularly looked at.

Some quick browsing in the code indeed seems to indicate that it can go.
Although maybe there's something subtle with the reference counter,
although the worst that could happen is that multiple RefAST's exist of a
null pointer, which should not be that bad.

I may have a closer look/try it out later this week or next week, there are
not too much occurences of the beast so giving it a spin is not hard.

    ---- Ric Klaren ----- klaren at cs.utwente.nl ----- +31 53 4893722  ----
 Why don't we just invite them to dinner and massacre them all when they're
  drunk? You heard the man. There's seven hundred thousand of them. Ah? ..
           So it'd have to be something simple with pasta, then.
                 From: Interesting Times by Terry Pratchet


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

More information about the antlr-interest mailing list