🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #535

documentation of `#define YYDEBUG' in bison.texinfo

#535
From: Carey R. Murphey
Date: Mon, 13 Nov 1989 04:00
20 lines
1042 bytes
The node `Debugging' in bison.texinfo explains how to enable debugging
using `#define YYDEBUG' in the parser file:

>To enable compilation of trace facilities, you must define the macro
>`YYDEBUG' when you compile the parser.  You could use `-DYYDEBUG' as
>a compiler option or you could put `#define YYDEBUG' in the C
>declarations section of the grammar file (*note C Declarations::.). 


`bison.simple' seems to expect this symbol to have a value --- it
uses it in a comparison:

#if YYDEBUG != 0

Should the text instead suggest using `#define YYDEBUG 1' or
`-DYYDEBUG=1' to enable debugging?

Thanks,
Rich@rice.edu
Technical Details
Message-ID: <8911130400.AA09527@kalliope.rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!RICE.EDU!rich

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!RICE.EDU!rich
From: rich@RICE.EDU (Carey R. Murphey)
Newsgroups: gnu.utils.bug
Subject: documentation of `#define YYDEBUG' in bison.texinfo
Message-ID: <8911130400.AA09527@kalliope.rice.edu>
Date: 13 Nov 89 04:00:30 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 20