[Top][All Lists]

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

Re: nonpure/pure/push

From: Joel E. Denny
Subject: Re: nonpure/pure/push
Date: Tue, 14 Feb 2006 17:03:01 -0500 (EST)

On Mon, 13 Feb 2006, Bob Rossi wrote:

> It is possible that we could make all 3 options use the ADT. The nonpure
> parser would then create a global instance of the ADT. Then we could
> #define the old variables with something like 
> '#define yychar (globalvar->yychar)' to satisfy code that users rely on.
> The code in yyparse would then change to something like
> (globalvar->yychar) instead of simply yychar.

This might cause trouble for yacc (a nonpure parser).  That is, you need 
to be able to do this in the scanner:

  extern YYSTYPE yylval;


reply via email to

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