[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
>derived:
>
>class PureBisonParser {
>public:
> virtual void yyparse(void);
> virtual void yyerror( ... );
>};
>
>class BisonParser: public PureBisonParser {
>public:
> // 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
sources.
Hans Aberg
- Re: beta testing, (continued)
Re: beta testing, Hans Aberg, 2001/02/20
- Re: beta testing, Philippe Bekaert, 2001/02/20
- Re: beta testing, Hans Aberg, 2001/02/21
- Re: beta testing, Philippe Bekaert, 2001/02/21
- Re: beta testing, Hans Aberg, 2001/02/21
- Re: beta testing, Magnus Fromreide, 2001/02/21
- Re: beta testing, Hans Aberg, 2001/02/21
- Message not available
- Re: beta testing, Hans Aberg, 2001/02/21
Re: beta testing,
Hans Aberg <=
Re: beta testing, Philippe Bekaert, 2001/02/21
Re: beta testing, Philippe Bekaert, 2001/02/21