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\
");
}


Reply via email to