grammatica-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: [Grammatica-users] Sample application


From: Per Cederberg
Subject: Re: R: [Grammatica-users] Sample application
Date: Fri, 06 May 2005 13:24:14 +0200

I might add that there are small examples of complete grammars
and analyzers in the download package. Just have a look in the
test/src/java/net/percederberg/grammatica/test or
test/src/csharp/PerCederberg.Grammatica.Test directories. There
you'll find the arithmetic calculator application (along with
an RE parser).

I'll try to put this application along with some comments on
the new web site once version 1.5 gets released. There is
actually an old bug reported on this (feel free to comment):
https://savannah.nongnu.org/bugs/index.php?func=detailitem&item_id=6962

Regarding the OO model, this is really an issue. Traditionally
parser generators have not provided a nice OO model. Grammatica
1.x is no exception here. I have some plans regarding this for
a future 2.0 release, but it is just on the drawing board for
the moment.

/Per

On fri, 2005-05-06 at 07:38 +0100, Francis Norton wrote:
> I have a C# CSS parser which I'm working on - I found it quite hard to 
> implement a good OO model, and would appreciate some feedback if anyone 
> is interested in doing a design review.
> 
> Francis.
> 
> Antonello Provenzano wrote:
> 
> >Well... yes... everything showing how to use the program (in any way) it is
> >always good...
> >
> >
> >-----Messaggio originale-----
> >Da: address@hidden
> >[mailto:address@hidden Per conto di D.
> >R. E. Moonfire
> >Inviato: giovedì 5 maggio 2005 4.59
> >A: address@hidden
> >Oggetto: Re: [Grammatica-users] Sample application
> >
> >Antonello Provenzano wrote:
> >  
> >
> >>Dear Per,
> >>
> >>I'm considering using the Grammatica parser generator for my application
> >>    
> >>
> >but
> >  
> >
> >>I would a sample application on how to manage the generated parsers.
> >>It is difficult to me, in fact, imagine how to get back a single element
> >>(eg. A single SQL statement abstraction) passing through all the methods
> >>generated in the output parser.
> >>
> >>It's difficult to figure out, then, how to threat the node elements
> >>    
> >>
> >without
> >  
> >
> >>a actual and concrete code reference.
> >>
> >>For all this reasons, I would like to suggest you to publish a complete
> >>sample application on the site.
> >>    
> >>
> >
> >If you give me a day, I should have my dice parsing library up at my 
> >site. It is fairly simple, but it shows passing child nodes up the tree, 
> >along with creating objects and internal structures as appropriate. 
> >Would that help?
> >
> >Cheers!
> >
> >P.S. I did finish creating the libgrammatica-cil package for Debian, if 
> >anyone is interesting. See http://www.mfgames.com/linux/ for more 
> >information.
> >
> >
> >
> >_______________________________________________
> >Grammatica-users mailing list
> >address@hidden
> >http://lists.nongnu.org/mailman/listinfo/grammatica-users
> >
> >
> >
> >
> >
> >_______________________________________________
> >Grammatica-users mailing list
> >address@hidden
> >http://lists.nongnu.org/mailman/listinfo/grammatica-users
> >
> >
> >  
> >
> 
> 
> 
> _______________________________________________
> Grammatica-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/grammatica-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]