On Sat, 2002-03-16 at 04:14, Glen Stampoutlzis wrote: > What about using a recursive descent parser where each method is one element > in your grammar? Not very sophisticated but it may be sufficient. >
parsing... "recursive" yes, "descent" (as in descend through the elements) yes, "parser" yes. Okay if the whole is no greater than the sum of its parts I agree. That is what I suggested, its just the order has to change when converting to the other format tokens/formula (hence the need for the stacks and/or linked list) thats the problem I was attacking. That sounds good to me though! Marc said he's going to hit formulas pretty hard at the end of the month. I hope everyone will give him a hand if needed. This is the most important feature of POI 2.0. I'm working on getting the record generator to work. Once I get there, I'm going to POUND out HDF record structures. Ryan emailed me to say he's still working on HDF, but it sound like he's trying to work in the dark :-( . -Andy > Regards, > > Glen > > ----- Original Message ----- > From: "acoliver" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, March 16, 2002 3:49 AM > Subject: Re: Re: random Thoughts on Formulotica > > > > I see some algorythm here.. Probably be as much effort for me to > translate > > it from italian and C as to rewrite it. I can translate text with web > tools > > and my knowledge of spanish but no chance on source code. > > > > Anyhow, the only things that we can use that are similar are looking at > > gnumeric, but its approach is to use yacc basically thats the summary. > > > > -Andy > > > > >On Fri, 15 Mar 2002 17:24:55 0100 "Nicola Ken Barozzi" > > <[EMAIL PROTECTED]> wrote. > > >From: "Andrew C. Oliver" <[EMAIL PROTECTED]> > > > > > >> So I've been thinking on how we might implement formulas: > > >> > > >> two stacks and a list > > >> > > >> operators operands results > > > > > >I think that the best thing to do is to reuse available stuff. > > > > > >Did you check if there are other packages that we can use? > > >Did you check if there are other packages that we peek at? > > >Do you want my formula algorithm done in C for a project I did some years > > >ago for an Excel in Dos? > > > > > >Attached. It's in Italian, but hey, aren't you the one who likes a > > >challenge? ;-) > > > > > >-- > > >Nicola Ken Barozzi [EMAIL PROTECTED] > > > - verba volant, scripta manent - > > > (discussions get forgotten, just code remains) > > >--------------------------------------------------------------------- > > > > > > > -- http://www.superlinksoftware.com http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound Document format to java http://developer.java.sun.com/developer/bugParade/bugs/4487555.html - fix java generics! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh
