bison-patches
[Top][All Lists]
Advanced

[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: Thu, 14 Sep 2006 09:00:21 -0400
User-agent: Mutt/1.5.11

On Thu, Sep 14, 2006 at 11:19:49AM +0200, Akim Demaille wrote:
> >>> "Bob" == Bob Rossi <address@hidden> writes:
> 
>  >> > 3. yychar, yylval, yynerrs, and yylloc (external parser variables)
>  >> >     These variables remain external in the default parser. However, in
>  >> >     the pure and push parser they go in the struct yypvars. So, I'm 
>  >> >     currently making accessor functions to access them. I currently only
>  >> >     have:
>  >> >         int get_yyresult (void *PVVOID);
>  >> >         void set_yychar (void *PVVOID, int yychar);
>  >> >     because they are the only 2 I need. However, should I just generate
>  >> >     all 4 pairs of set/get functions for yychar, yylval, yynerrs, and
>  >> >     yylloc?
>  >> 
>  >> I'd just generate the ones you need for now.  However, their names
>  >> should start with yy to avoid namespace collision.
> 
>  > Got it. that's done.
> 
> I don't want to be a pain in the neck, but I like
> 
>   yychar_set, yychar_get etc.
> 
> instead of
> 
>   yyget_char etc.

Yes, I had already made this change, so that's good.

Bob Rossi




reply via email to

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