Re: %type'd non-terminal produces a `has no declared type' error

2009-01-21 Thread Hans Aberg
On 20 Jan 2009, at 21:53, Alexander Sorockin wrote: Has anyone besides me noticed that $n with n zero or negative always triggers a "$n ... has no declared type" error when a %union is used? But what semantic value do you expect to be assigned for these $k values? - Once upon the time, I th

Re: %type'd non-terminal produces a `has no declared type' error

2009-01-21 Thread Akim Demaille
Le 20 janv. 09 à 21:53, Alexander Sorockin a écrit : Hi, Has anyone besides me noticed that $n with n zero or negative always triggers a "$n ... has no declared type" error when a %union is used? And it's normal: since you are looking deep in the stack, Bison cannot figure out (in the g

Re: %type'd non-terminal produces a `has no declared type' error

2009-01-21 Thread Hans Aberg
On 21 Jan 2009, at 11:28, Alexander Sorockin wrote: But what semantic value do you expect to be assigned for these $k values? According to the manual, "$n with n zero or negative is allowed for reference to tokens and groupings on the stack before those that match the current rule." So

syntax error at line 23510: `}' unexpected

2009-01-21 Thread kamaraju kusumanchi
When trying to configure bison 2.4.1 (http://directory.fsf.org/project/bison/) on a Solaris 2.8, the configuration stops with > ../../unZipped/bison-2.4.1/configure ../../unZipped/bison-2.4.1/configure: syntax error at line 23510: `}' unexpected > uname -a SunOS axkmsapp075n2 5.8 Generic_117350-

Re: syntax error at line 23510: `}' unexpected

2009-01-21 Thread Ian Lance Taylor
kamaraju kusumanchi writes: > When trying to configure bison 2.4.1 > (http://directory.fsf.org/project/bison/) on a Solaris 2.8, the > configuration stops with > > >> ../../unZipped/bison-2.4.1/configure > ../../unZipped/bison-2.4.1/configure: syntax error at line 23510: `}' > unexpected Althou

Re: syntax error at line 23510: `}' unexpected

2009-01-21 Thread kamaraju kusumanchi
On Wed, Jan 21, 2009 at 8:03 PM, Ian Lance Taylor wrote: > kamaraju kusumanchi writes: > >> When trying to configure bison 2.4.1 >> (http://directory.fsf.org/project/bison/) on a Solaris 2.8, the >> configuration stops with >> >> >>> ../../unZipped/bison-2.4.1/configure >> ../../unZipped/bison-2.