[antlr-interest] Is "-debug" command line option broken with language=CSharp?

Takashi Oguma bear.mini at gmail.com
Sun May 27 19:29:44 PDT 2007


Hi Micheal,

I tried the updated Dbg.stg file. It seems to work fine. At least I
can get a parse tree for the wiki page's example.

# I'm sorry for forgotting to add this list's address in my previous post.
# I'm not used to writing with Gmail :(

On 5/26/07, Micheal J <open.zone at virgin.net> wrote:
> Hi Takashi,
>
> Find the updated Dbg.stg file attached. Replace the one in your .jar file or
> in the appropriate sub-dir of ANTLR directory. It should go in:
>        src/org/antlr/codegen/templates/CSharp/Dbg.stg
>
> This should fix both the 'nvae' and the 'location' issues you reported in
> debug output. Please retry and let me know (and others on the list) if it
> does fix the issues for you.
>
> Micheal
>
> -----------------------
> The best way to contact me is via the list/forum. My time is very limited.
>
> > -----Original Message-----
> > From: Takashi Oguma [mailto:bear.mini at gmail.com]
> > Sent: 26 May 2007 04:18
> > To: Micheal J
> > Subject: Re: [antlr-interest] Is "-debug" command line option
> > broken with language=CSharp?
> >
> >
> > Hi Micheal,
> >
> > Thanks for replying!
> >
> > I sent wrong PParser.cs (generated without -debug option) by
> > mistake. Now I sent PParser.cs and PLexer.cs generated with
> > -debug option. There is 'nvae' at the line #393. Anyway I'll
> > try the latest Dbg.stg for the first problem.
> >
> > Thanks!
> >
> > On 5/25/07, Micheal J <open.zone at virgin.net> wrote:
> > > Hi Takashi,
> > >
> > > Thanks for the report.
> > >
> > > > I want to build a parse tree with my grammar, and as my
> > first step,
> > > > I refer to this Wiki page:
> > > > http://www.antlr.org/wiki/pages/viewpage.action?pageId=1760
> > > >
> > >
> > > [SNIP]...
> > >
> > > > But when I compiled PParser.cs, I got 2 types of error messages:
> > > >
> > > > 1st:
> > > > error CS0117: 'Antlr.Runtime.Debug.IDebugEventListener' does not
> > > > contain a definition for 'location' (this error occurred 5 times)
> > >
> > > Yes the debug codegen output was broken :(
> > >
> > > It has now been fixed with respect to this issue:
> > >
> > >
> > http://fisheye2.cenqua.com/browse/antlr/src/org/antlr/codegen/te> mplate
> > > s/CSha
> > > rp/Dbg.stg?r1=3676&r2=3787
> > >
> > >
> > > > 2nd:
> > > > error CS0103: The name 'nvae' does not exist in the
> > current context
> > > > (this erro occurred 1 time)
> > > ...
> > > > C:\Work\AntlrExample\AntlrExample\PParser.cs(393,42):
> > error CS0103:
> > > > The
> > > name 'nvae' does not exist in the current context
> > >
> > > There is no entity named 'nvae' anywhere in the PParser.cs file. Is
> > > this a real error?
> > >
> > >
> > > Until the next "daily" build, you can grab the latest C# Dbg.stg
> > > template group file from:
> > >
> > >
> > http://fisheye2.cenqua.com/browse/~raw,r=> 3787/antlr/src/org/antlr/code
> > > gen/te
> > > mplates/CSharp/Dbg.stg
> > >
> > >
> > > Micheal
> > >
> > > -----------------------
> > > The best way to contact me is via the list/forum. My time is very
> > > limited.
> > >
> > >
> >
> >
> > --
> > Takashi OGUMA  小熊 崇
> > bear.mini at gmail.com
> >
>
>


-- 
Takashi OGUMA  小熊 崇
bear.mini at gmail.com


More information about the antlr-interest mailing list