[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: beta testing
From: |
Akim Demaille |
Subject: |
Re: beta testing |
Date: |
20 Feb 2001 15:21:16 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
Hans Aberg <address@hidden> writes:
> >> No, this is not a question how to generate parsers imbedded in a C++
> >> class.
> >
> >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.
Sorry, I really understood `this is not a question how to generate
parsers imbedded in a C++ class' as `that's not my point'!
> -- 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 */ }
What's wrong with using the extra params for pure_parsers?