On Tue, Apr 04, 2006 at 05:48:22PM -0700, Paul Eggert wrote: > Bob Rossi <[EMAIL PROTECTED]> writes: > > >> Have you had anyone else besides you look at it? What was their > >> reaction? > > > > I suppose I should have answered this sooner. However, no, no one else > > has looked at it, and I don't think anyone will. > > Is there some way that we can fix that? For example, is there someone > who needs push parsers, but doesn't yet know that they need them?
What is the goal here? Are you interested in discovering what a nice interface for a push parser would be? or are you interested in finding someone to review the patch? An example interface similar to this is here, http://www.hwaci.com/sw/lemon/lemon.html It looks like, pParser = ParseAlloc( malloc ); while( GetNextToken(pTokenizer,&hTokenId, &sToken) ) Parse(pParser, hTokenId, sToken); Parse(pParser, 0, sToken); ParseFree(pParser, free ); This is basically identical to what I've done, except I don't pass the token into the yyparse function. I call set_yychar. This is because I have 4 variables that need to be accessed by the user. Accessor functions seem perfectly reasonable to me. However, we could put the structure in the header file, and allow users to modify the contents of it. Thanks, Bob Rossi
