[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: |
Tue, 20 Feb 2001 15:08:44 +0100 |
At 13:32 +0100 2001/02/20, Akim Demaille wrote:
>> No, this is not a question how to generate parsers imbedded in a C++
>> class. After carefully studying the bison manual, I found out that there
>> is no direct way to do so, but I also found out that it requires only
>> small changes to the bison.simple code fragment that bison copies into
>> the parser. The changes I did are:
>
>There is no way to produce Parser objects, but I have no problem using
>Bison with C++ code.
I got the impression that this is about embedding the parser code into a
C++ class so that the names becomes local to the class. What Philippe
Bekaert suggests would then be the first step.
-- But one still has to give thought how to make those macro names that the
parser uses local.
-- Another problem is how to deliver the parsed value in a pure (local)
fashion. Currently one has to write something like
%{
my_type global_value; // Global variable
%}
%%
sentence: foo { global_value = $1; /* Deliver the global value */ }
This is not good if one wants to write thread-safe parsers. -- Somehow, one
must be able to ensure that every invokation of the parser only uses its
own local values.
> There is no "GNU mailing lists" item on the www.gnu.org page ...
Try http://mail.gnu.org/mailman/listinfo.
Hans Aberg