help-bison
[Top][All Lists]
Advanced

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

Re: how to solve this reduce/reduce conflict?


From: AW
Subject: Re: how to solve this reduce/reduce conflict?
Date: Fri, 23 Sep 2022 11:52:14 +0000 (UTC)

On 22/09/2022 21:34, Derek Clegg wrote:
> This is horrid, and not how math works. Spaces necessarily mean nothing,
> and imbuing them with meaning is nonsense.
>
if u want to say one-hundred-twenty-three u would not think, that C understands 
"1 23"...
I feel like "-123" and "- 123" are not quite the same...
That feels more natural to me...
But I noticed that it was quite tricky to teach flex&bison the difference
between sign and unary-inversion-operator... 😋

On 2022-09-23T12:47:23CEST Evan Lavelle <eml-bison@cyconix.com> wrote:
> It's a programming language, not maths. There are, of course, languages 
> in which spaces necessarily mean something. But I can't bring myself to 
> use any of them.
>
Maybe this example demonstrates a use: "123" is usually not the same as "12     
         3"...
Maybe something like "1 234 567" might be used in newspapers for "1234567",
but the professional typesetters use special space symbols then,
which are thinner and they stick hard to their neighbors,
so that a newline is impossible at them... 😋

-arne



reply via email to

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