[antlr-interest] FW: CSharp Target...

Johannes Luber JALuber at gmx.de
Wed Jun 18 04:43:17 PDT 2008


> Yes, I had them in my classpath, I didn't have junit.jar (which Hamilton
> pointed me to).  
> I had to remove $codegen.dir from src.path 
> 
>     <path id="src.path">
>         <pathelement location="${src.dir}" />
> <!--        <pathelement location="${codegen.dir}" />  -->
>     </path> 
> 
> or I got a ton of duplicate classes like:
> 
> [myjavac] C:\Program Files\Antlr\antlr-3.1b1\codegen\ANTLRLexer.java:61:
> duplicate class: org.antlr.tool.ANTLRLexer
> 
> I also changed /src/org/antlr/codegen/templates/CSharp2/Dbg.stg
> 
> $ cat Dbg.stg.diff 
> 110c110
> < public <name>(<inputStreamType> input, DebugEventListener dbg,
> RecognizerSharedState state)
> ---
> > public <name>(<inputStreamType> input, IDebugEventListener dbg,
> RecognizerSharedState state)
> 124c124
> < public <name>(<inputStreamType> input, DebugEventListener dbg,
> RecognizerSharedState state<grammar.delegators:{g|, <g.recognizerName>
> <g:delegateName()>}>)
> ---
> > public <name>(<inputStreamType> input, IDebugEventListener dbg,
> RecognizerSharedState state<grammar.delegators:{g|, <g.recognizerName>
> <g:delegateName()>}>)
> 133c133
> < public <name>(<inputStreamType> input, DebugEventListener dbg)
> ---
> > public <name>(<inputStreamType> input, IDebugEventListener dbg)
> 
> And now I don't get compile errors when enabling -debug.

Thanks! Fixed that on my comp already. :)

Johannes
> 
> Kris
> 
> -----Original Message-----
> From: Johannes Luber [mailto:JALuber at gmx.de] 
> Sent: Tuesday, June 17, 2008 4:34 AM
> To: Kris Erickson
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] FW: CSharp Target...
> 
> > Johannes and Hamilton,
> > 
> > Thanks for the help.  Recompiling the runtime .net sources did get 
> > this working
> 
> All mentioned errors went away?
> 
> > (can't quite figure out how to rebuild the Java tool as ant produces a
> 
> > ton of errors when I try to build the build.xml).
> 
> Did you put antlr-2.7.7.jar and stringtemplate.jar into the lib
> directory of ANTLR?
> 
> Johannes

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the antlr-interest mailing list