[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed patch for Bison core dumps when using lalr1.cc
From: |
Akim Demaille |
Subject: |
Re: proposed patch for Bison core dumps when using lalr1.cc |
Date: |
Sat, 01 Mar 2003 14:03:16 +0100 |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 |
>> From: Akim Demaille <address@hidden>
>> Date: Sun, 02 Feb 2003 10:22:48 +0100
Paul> However, I'm puzzled: why is the header required for C++?
>>
>> Because the code is designed this way. Actually, the real
>> question is why is it not in C.
Paul> To allow for the simple case when the .y file itself defines yylex,
Paul> or the simple case when no token codes are needed and the
Paul> automatically-generated YYSTYPE and YYLTYPE are not used.
Paul> In these two simple cases, the header file is unnecessary.
Paul> Admittedly the simple cases are not as popular these days.
Paul> Still, they are in use, and the longstanding tradition is to write a
Paul> header file only if -d is specified.
Paul> It would be confusing for users if C and C++ behaved
Paul> differently here.
I don't think so. Generating C without headers belongs to the past.
Except for yacc.c, I believe all the other skeletons can generate
mandatory headers.
- Re: proposed patch for Bison core dumps when using lalr1.cc,
Akim Demaille <=