bison-patches
[Top][All Lists]
Advanced

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

Re: FYI: default %printer/%destructor


From: Hans Aberg
Subject: Re: FYI: default %printer/%destructor
Date: Thu, 23 Nov 2006 13:31:39 +0100

On 23 Nov 2006, at 09:47, Paul Eggert wrote:

Maybe it's just me, but I prefer Hans' suggestion:

  exp/sum: exp/term1 '+' exp/term2

over

  exp#sum: exp#term1 '+' exp#term2

I can't think of any semantic reason to prefer one over the other. The
slash is just a little easier on my eyes.

I think "/" bugs me because it means "or" in ABNF, which is the
standard grammatical notation used in Internet RFCs; see
<http://www.ietf.org/rfc/rfc4234>.

As for BNF extensions, I think Bison will have to get its own variation. These standards where cooked up with other objectives in mind.

I could live with "/",
I suppose.

I think "/" could be used in math, but one is there used to overload symbols. I thought at first "#" might look to heavy, but in the calculator example, it looks fine. And "#" is used in TeX i onccetion with variables.

I don't much like the `-' to mean nothing. I had originally suggested `!' instead, but I found a reason why I don't like it either, and that reason
also applies to `-'.  This one post might help you catch up:

http://lists.gnu.org/archive/html/bison-patches/2006-11/ msg00039.html

Sorry, I don't follow the argument there.  How does it apply to "/"
(or "#" or whatever)?

And when I tried to look, the server was down.

  Hans Aberg






reply via email to

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