[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parsing a language with optional spaces
From: |
Akim Demaille |
Subject: |
Re: Parsing a language with optional spaces |
Date: |
Sat, 18 Jul 2020 08:04:05 +0200 |
Hi Christian,
> Le 14 juil. 2020 à 13:44, Christian Schoenebeck <schoenebeck@crudebyte.com> a
> écrit :
>
>> -Except for GLR parsers (@pxref{Compiler Requirements for GLR}), the C
>> -code that Bison generates requires only C89 or later. However, Bison
>> -itself requires common C99 features such as declarations after
>> -statements. Bison's @code{configure} script attempts to enable C99 (or
>> -later) support on compilers that default to pre-C99. If your compiler
>> -lacks these C99 features entirely, GCC may well be a better choice; or
>> -you can try upgrading to your compiler's latest version.
>> +Except for GLR parsers (which require C99), the C code that Bison generates
>> +requires only C89 or later. However, Bison itself requires common C99
>> +features such as declarations after statements. Bison's @code{configure}
>> +script attempts to enable C99 (or later) support on compilers that default
>> +to pre-C99. If your compiler lacks these C99 features entirely, GCC may
>> +well be a better choice; or you can try upgrading to your compiler's
>> latest +version.
>
> That would already be far beyond my personal level of detail. :) I mean it is
> absolutely correct, but you barely find a C compiler for that to be an issue
> at all nowaways. Usually you would need to explicitly force a compiler to
> strict ISO C89 for that to happen today.
I mean to specify what the requirements for yacc.c are. It's binding us with
our users, and they can rely on this. I'll be very happy to move forward
(say in Bison 4) but we still have occasional reports when we depart from this.
For instance https://github.com/akimd/bison/issues/37.
- Re: Parsing a language with optional spaces, (continued)
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/09
- Re: Parsing a language with optional spaces, uxio prego, 2020/07/11
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/12
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/13
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/14
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/14
- Re: Parsing a language with optional spaces,
Akim Demaille <=
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/14
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/18
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/20
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/26
- Re: Parsing a language with optional spaces, John P. Hartmann, 2020/07/26
- Re: Which lexer do people use?, uxio prego, 2020/07/06
- Re: Which lexer do people use?, Akim Demaille, 2020/07/06
Re: Which lexer do people use?, Derek Clegg, 2020/07/04