[Mono-list] Using the mono jay parser
Rodrigo B. de Oliveira
rbo@acm.org
Sun, 10 Oct 2004 17:02:48 -0300
----- Original Message -----
From: "Francis Brosnan Blázquez" <francis@aspl.es>
> > Hi,
> >
> > I assume you have already considered antlr [1] ?
> >
> > I've been using it for years and it works amazingly well.
>
> Hi Rodrigo,
>
Hi!
> I've been looking antlr software and it looks great. But your software
> must be linked against its runtime. I've also see your project at the
> showcase section and was wondering if you don't see a problem that antlr
> forces you to link your project against its runtime?
No, not really. antlr is public domain [1] so no distribution restrictions
apply
and we have xcopy deployment so it's really a burden.
> Our projects needs to run on Windows and GNU/Linux platform as well so,
> i think using antlr software adds some troubles to your problem. Did you
> test your Boo language enviroment on windows?
Yes. boo is developed and tested in both Windows and GNU/Linux. The
parser was never a problem.
> Maybe I'm wrong and antlr has some mode to generate scanners and lexers
> in a way your software keeps independent from antlr. Can you tell me
> about your experience on this ?
The generated scanners will have a dependency on the antlr runtime. I prefer
to distribute
the runtime as an external assembly (antlr.runtime.dll) but I've seen people
embedding the
source files in their own project as well. Both approaches work and are
conform to
the license.
Cheers,
Rodrigo
[1] http://www.antlr.org/license.html
>
> cheers,
> Rodrigo
>
> [1] http://www.antlr.org/
>
> Em Sáb, 2004-10-09 às 15:27, Francis Brosnan Blázquez escreveu:
> > Hi,
> >
> > We are developing an application using mono which have to parse
> > molecular definitions written in Smiles format. We have already use
> > bison and flex tools to produce scanners and parsers before, so we want
> > to keep doing the same ;).
> >
> > We have started to figure out how mono uses the jay modified version to
> > produce its c# parser but we are having some problems. One problem is
> > that we don't find how mono produces its scanner. What lexer is mono
> > using?. The other problem is that we haven't found much documentation on
> > how to use jay (not how to use lex and yacc languages) to produce a
> > parser.
> >
> > It would be great to have some guidelines to start. Anything will be
> > appreciated: files to look, ideas, concepts on how to use your modified
> > jay...
> >
> > Cheers,
>
--
Francis Brosnan Blázquez <francis@aspl.es>
Advanced Software Production Line, S.L.
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list