[Top][All Lists]

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

Re: push parser implemenation

From: Bob Rossi
Subject: Re: push parser implemenation
Date: Tue, 4 Apr 2006 21:10:09 -0400
User-agent: Mutt/1.5.9i

On Tue, Apr 04, 2006 at 05:48:22PM -0700, Paul Eggert wrote:
> Bob Rossi <address@hidden> 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,

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

Bob Rossi

reply via email to

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