[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question: is a long line still a problem in current bison version?
From: |
Kaz Kylheku |
Subject: |
Re: question: is a long line still a problem in current bison version? |
Date: |
Wed, 26 Oct 2022 12:11:32 -0700 |
User-agent: |
Roundcube Webmail/1.4.13 |
On 2022-10-25 09:23, Stephan Sperber wrote:
> Hi All,
>
> to explain my problem i opened a pull request on github. i hope it
> explains my problem. (it is based on some old version)
> https://github.com/akimd/bison/pull/95
>
> as i understand this line
> https://github.com/akimd/bison/blob/master/data/skeletons/variant.hh#L488
> of the latest and greatest
> it is only generated if we dont have msvc.
> so this kind of problem should be resolved for me if i just manage to
> use a recent version, am i correct?
Do you know whether long logical lines are a problem for MSVC,
or is it just long physical (i.e. preprocessor) lines?
C and C++ can be mechanically fit to a minum line width using backslash
continuations. Backslash continuations can be in the middle of a token,
so it can be done without regard for even token level syntax.
A trivial text filtering program can do it.
Here is chpped-up Hello, World:
#inc\
lu\
de\
<std\
io.h>
in\
t mai\
n(vo\
id)
{
pr\
in\
tf(\
"h\
ello,\
world!\n\
");
}