[Top][All Lists]

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

Re: push parser implemenation

From: Akim Demaille
Subject: Re: push parser implemenation
Date: Thu, 14 Sep 2006 11:19:49 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

>>> "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.

reply via email to

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