3300RE: [antlr-interest] Re: C sharp parser
- Mar 1, 2001Okay, here's what I've got so far. I have the runtime (in lib/csharp)
mostly done. As I said, I was using 2.7.1a4, I didn't track what changed
between it and the release version. I have the code generator done (in
CSharpCodeGenerator.java and CSharpBlockFinishingInfo.class). I have done
the actions, but there're not in the zip file yet, since I haven't had time
to go back through and double check them, but I recall that the default java
actions mostly work.
I'm sure there are bugs in the code generator, which I uncover as I build
more examples. Also I'm sure there are bugs in the runtime.
I originally did this in VS.net, but I've ripped that out and just put a
makefile in the lib/csharp directory.
I had also been signing it with a key of mine so I could give the library a
strong name and put it in the global assembly cache. I'm not sure we want
to do that, since we'd need some centrally managed key in order for everyone
to share it. OTOH, if we don't do that we'll end up with zillions of copies
of the runtime (which I'm calling antlr-msnet.dll). I'm open to discussion
on this. Maybe I'll just generate a special key that everyone could use,
but that seems to defeat the purpose. For this "release", I removed the key
and strong name. That means that for the examples to work, you need to copy
antlr-msnet.dll into the directory where each example is built. I've only
done that for the calc example, but it's easy enough to do yourself. Once
we decide on if the runtime should be signed, or how else we should handle
it, I'll fix all the examples.
All of the examples I've included here work (or worked at one time), but as
I said I've only gone back and fixed the calc example to copy the runtime.
The files are available at
http://www.windsor.com/erics/antlr-csharp-2.7.1.zip. It should contain only
the files I've added, but if anything's missing let me know.
I'm interested in any feedback, especially bug fixes and what we should do
about the runtime. For the time being, I'll collect and integrate fixes,
and I'll work on the actions. When it's stable enough I'll send it to Ter
who can include it in the distribution if he sees fit.
> -----Original Message-----http://docs.yahoo.com/info/terms/
> From: S.Zschocke@... [mailto:S.Zschocke@...]
> Sent: Tuesday, February 27, 2001 11:42 AM
> To: email@example.com
> Subject: [antlr-interest] Re: C sharp parser
> we are looking for antlr support to generate c#-parsers, analog to
> existing support for c++ and sather.
> By porting we start from the java case, which is different to the C++
> and Sather case in that the generated parser partly uses the same
> classes as the parser-generator. Thus actually we port parts of antlr
> to c#, too.
> --- In antlr-interest@y..., "John D. Mitchell" <johnm-antlr@n...>
> > >>>>> "S" == S Zschocke <S.Zschocke@i...> writes:
> > > We certainly are interested. We don't want to wait for .net beta2
> > > need to get it going immediately. I have an apprentice who can
> do the
> > > porting of the runtime from java to c#, which is mostly pretty
> > > forward (once the set of java- files needed for the runtime is
> > > identified). I have already started with the CodeGenerator
> myself and it
> > > already does some c#-pidgin'. I would appreciate if you could
> throw in
> > > your efforts at this state, especially the
> CSharpCodeGenerator.java (or
> > > what do you name it?). Concerning .java->.cs it would suffice if
> > > just zip them and send them to us. We will make our work
> available to
> > > the public. Terence is interested to incorparate the C# stuff
> into the
> > > distribution. What do you think?
> > I'm confused by your questions since you seem to be talking about
> > different things that are only sort of related. Please clarify
> > what you're looking for:
> > * A C# parser
> > * A Java to C# source to source translator
> > * A Java to C# .class to .source translator
> > * Antlr support for generating C# parsers
> > * A C# implementation of Antlr (:-)
> > Or what?
> > Thanks,
> > John
> > --
> > jGuru.com -- Unleash the Guru Within!
> > JavaWorld.com -- Share your Tips and Tricks!
> Your use of Yahoo! Groups is subject to
- << Previous post in topic Next post in topic >>