[Top][All Lists]

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

Re: beta testing

From: Hans Aberg
Subject: Re: beta testing
Date: Wed, 21 Feb 2001 12:41:07 +0100

At 23:43 +0100 2001/02/20, Philippe Bekaert wrote:
>What about providing two base classes from which parser classes shall be
>class PureBisonParser {
>  virtual void yyparse(void);
>  virtual void yyerror( ... );
>class BisonParser: public PureBisonParser {
>  // all global variables of a non-pure parser come here

There is the macro YY_DECL_VARIABLES; if you define it in the header,
instead of in bison.simple, you probably can skip the double classes. --
One problem though is that the macro YYPURE that would be needed seems to
written into the .tab.cc file. So it would need some tweaking of the Bison

  Hans Aberg

reply via email to

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