|
From: | Hans Aberg |
Subject: | Re: %type'd non-terminal produces a `has no declared type' error |
Date: | Wed, 21 Jan 2009 12:48:47 +0100 |
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 then it is still permitted - but the answer by Akim shows some problems: it is hard to tell exactly what is on the stack, as it is dynamically allocated.
Hans
[Prev in Thread] | Current Thread | [Next in Thread] |