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

2009-01-22 Thread Alexander Sorockin
ld of the union it needs to use to decode the semantic value. A situation where you declare a type and still get a "has no declared type" error didn't seem normal to me, that's why I had to dig into the source code and post here. You're asking for completely new

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

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 fig

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 t

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

2009-01-20 Thread Alexander Sorockin
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? Cosider this grammar, which is a slightly modified example from the manual: %union { int val; } %token NUM %start fo

Re: no declared type error

2006-10-24 Thread Hans Aberg
.. " no declared type error" . I have searched for this error on net but could hardly get any help. Any suggestions? Thanks in advance -hari ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/

no declared type error

2006-10-24 Thread Hari
Hi, I am trying to bison a parser.y file. I am unable to compile it as it shows.. " no declared type error" . I have searched for this error on net but could hardly get any help. Any suggestions? Thanks in advance -hari ___ help-bison@gn