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




_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to