[antlr-interest] trace as an grammar and rule option

mzukowski at yci.com mzukowski at yci.com
Wed Sep 18 07:42:05 PDT 2002

I've been thinking about rule-level trace too.  Nearly always you will want
to know the whole context from which the rule has been called.  Rarely is
the problem in a rule per se, it's more likely to be how the rules relate to
one another, so I'm not sure how useful it would be to have a rule-level
trace.  Inspecting the code for a rule will probably give you all the
insight you need.


> -----Original Message-----
> From: Ric Klaren [mailto:klaren at cs.utwente.nl]
> Sent: Wednesday, September 18, 2002 1:59 AM
> To: antlr-interest at yahoogroups.com
> Subject: Re: [antlr-interest] trace as an grammar and rule option
> Hi,
> On Tue, Sep 17, 2002 at 09:08:29PM -0000, richardhensley99 wrote:
> > I was wondering if anybody has ever thought about a trace option at
> > the grammar and at the rule level?
> I'm not sure I completely understand the rule level trace. I 
> kindoff got a
> hunch that you want to do something similar to parts of the parseView
> hooks (look at the code generated with -debug)
> Dunno, my first reaction is something like why not put a few 
> println's in
> the rule to see what happens? Done in a few minutes, nothing 
> fancy always
> works :) Of course it can very much be that I misunderstood 
> what you want
> to do exactly....
> Cheers,
> Ric
> --
> -----+++++****************************************************
> *+++++++++-------
>     ---- 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/ 


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

More information about the antlr-interest mailing list