Re: [bug-bison] Bug in string-valued terminals

2011-01-09 Thread Joel E. Denny
Hi John, On Fri, 31 Dec 2010, John P. Hartmann wrote: > I cannot answer your question directly, but maybe this will be of some > help in the folklore department. > > Bison used to have an option to generate the just the tables > (no-parser), which by the end of version 1 still worked sort-of. Y

should we deprecate %token-table? (was: Re: [bug-bison] Bug in string-valued terminals)

2011-01-09 Thread Joel E. Denny
On Fri, 31 Dec 2010, twlevo wrote: > > On Thu, 30 Dec 2010 18:20:09 -0500 (EST), Joel E. Denny wrote: > > > Oldest found doc about a option --token-table and %token-table is > > > in gcc-1.22 or gcc-1.24 in bison.info.2 or .4 without a note how to use > > > it. > > Could you explain a little more

Re: [bug-bison] Bug in string-valued terminals

2011-01-08 Thread Joel E. Denny
Hi Tom, On Fri, 7 Jan 2011, Tom Roberts wrote: > On 12/29/10 12/29/10 - 7:31 PM, Joel E. Denny wrote: > > On Wed, 29 Dec 2010, Tom Roberts wrote: > > > Ok. I decided to not use yytoknum[], as it is undocumented and also > > > requires a > > > funky "#define YYPRINT". Here is the code I am using i

Re: [bug-bison] Bug in string-valued terminals

2011-01-07 Thread Tom Roberts
On 12/29/10 12/29/10 - 7:31 PM, Joel E. Denny wrote: On Wed, 29 Dec 2010, Tom Roberts wrote: Ok. I decided to not use yytoknum[], as it is undocumented and also requires a funky "#define YYPRINT". Here is the code I am using inside yylex(): [... some important lines omitted at beginning and end

Re: [bug-bison] Bug in string-valued terminals

2010-12-30 Thread Joel E. Denny
Hi Tys, On Thu, 30 Dec 2010, twlevo wrote: > Oldest found doc about a option --token-table and %token-table is > in gcc-1.22 or gcc-1.24 in bison.info.2 or .4 without a note how to use it. Could you explain a little more about this? Are you saying some old versions of gcc use %token-table? Th

Re: [bug-bison] Bug in string-valued terminals

2010-12-29 Thread twlevo
On Wed, 29 Dec 2010 20:31:15 -0500 (EST), Joel E. Denny wrote: Again, it would be great if someone could recall how %token-table and the yytname table it generates were originally intended to be used. Maybe this helps: looked in the oldest known bison-1.0 source which has yytname[] in output.c

Re: [bug-bison] Bug in string-valued terminals

2010-12-29 Thread Joel E. Denny
Hi Tom, I've added help-bison. Maybe someone there will know more. On Wed, 29 Dec 2010, Tom Roberts wrote: > Ok. I decided to not use yytoknum[], as it is undocumented and also requires a > funky "#define YYPRINT". Here is the code I am using inside yylex(): > for(int i=0; i