bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proposed patch for Bison core dumps when using lalr1.cc


From: Paul Eggert
Subject: Re: proposed patch for Bison core dumps when using lalr1.cc
Date: Mon, 3 Feb 2003 07:18:16 -0800 (PST)

> 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.

To allow for the simple case when the .y file itself defines yylex,
or the simple case when no token codes are needed and the
automatically-generated YYSTYPE and YYLTYPE are not used.
In these two simple cases, the header file is unnecessary.

Admittedly the simple cases are not as popular these days.
Still, they are in use, and the longstanding tradition is to write a
header file only if -d is specified.

It would be confusing for users if C and C++ behaved differently here.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]