Re: Language Versions

Arthur Schwarz <[email protected]> Tue, 6 Sep 2022 14:05:48 -0700
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
Hi Akim;

I do mean the version of C/C++/D/Java should be stated. For example int 
he C case there is the K & R version. Is this the relatively old version 
you mean. For C++ do  you mean C++98, C++03, C++11? All of these are 
relatively old.I expect that D and Java have the same uncertainty.

That you use relatively old versions is meaningless because you haven't 
specified the version. And suppose that the version baseline changes, 
and code generated from prior versions are deprecated, or more 
insidious, the semantics are altered. You've provided no guidance.

This is no more than a single line in the document and/or part of 
--help. It tells your audience what compilers they can use and what 
language elements are available. All with a single line.

Cheers;
art

On 9/4/2022 1:35 AM, Akim Demaille wrote:
> Hi,
>
>> Le 11 juin 2022 à 00:52, slipbits <[email protected]> a écrit :
>>
>> Could you specify the language version of the generated parser code? This will help in specifying the correct compiler to use for the generated parser source code and headers.
> You mean that we should specify that C++ means C++98, C C90, etc.?
>
> We aim to relatively old versions of the various standards.
>
> For Java, the test suite uses Java 1.7, but we might support older versions of Java, I actually don't know.
>
> Wrt to D, I have no idea how generations/versions of the language are specified.
>
>
>
> Concretely, what problem did you have to fix that would have been solved by more documentation?