[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %union ... {
From: |
Paul Eggert |
Subject: |
Re: %union ... { |
Date: |
Sun, 18 Jun 2006 22:49:38 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Akim Demaille <address@hidden> writes:
> It's just that I don't think we should worry that much for a careless
> user.
In this particular case, since it's not too much trouble, let's worry
it, since we want Bison to be a drop-in replacement for BSD Yacc (even
for careless users :-).
> If we want to set the user really free, then let's extend the grammar
> with more than just ID, for instance a STRING, or even BRACED_CODE.
I don't see why that would be useful, and in the case of BRACED_CODE
it might even lead to weird behavior by Bison if the user forgets the
second % in "%union { ... } %{ .... %}". Since this is purely for
compatibility I think that all we really need to support is what's
used by BSD Yacc + C grammars, or perhaps BSD Yacc + C++ if some
people actually use that combination. If you think it unlikely that
C++ programers use "%union foo::bar {...}" then let's just support
single identifiers; that should be enough.
- Re: Dubious features, (continued)
- Re: Dubious features, Akim Demaille, 2006/06/08
- Re: Dubious features, Akim Demaille, 2006/06/08
- Re: Dubious features, Paul Eggert, 2006/06/08
- Re: Dubious features, Akim Demaille, 2006/06/08
- Re: Dubious features, Paul Eggert, 2006/06/08
- Re: Dubious features, Akim Demaille, 2006/06/10
- Re: Dubious features, Paul Eggert, 2006/06/11
- Re: %union ... {, Akim Demaille, 2006/06/16
- Re: %union ... {, Paul Eggert, 2006/06/16
- Re: %union ... {, Akim Demaille, 2006/06/17
- Re: %union ... {,
Paul Eggert <=
- Re: %union ... {, Hans Aberg, 2006/06/19
- Re: %union ... {, Akim Demaille, 2006/06/19
- Re: %union ... {, Paul Eggert, 2006/06/19
- Re: %union ... {, Akim Demaille, 2006/06/20
- Problems with CVS, Akim Demaille, 2006/06/20
- Re: Problems with CVS, Paul Eggert, 2006/06/20
- Re: %union ... {, Joel E. Denny, 2006/06/19
- Re: %union ... {, Akim Demaille, 2006/06/20
- Re: %union ... {, Hans Aberg, 2006/06/20