bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: default %printer/%destructor


From: Hans Aberg
Subject: Re: FYI: default %printer/%destructor
Date: Sat, 25 Nov 2006 13:37:35 +0100

On 25 Nov 2006, at 03:00, Joel E. Denny wrote:

You would need a rule telling, in the case of multiple occurrences, when the
default names can be used.

I addressed the problem of ambiguous names here:

http://lists.gnu.org/archive/html/bison-patches/2006-11/ msg00039.html

If you split up the problem of naming variables - language feature, from the unused variables - a compiler option, then it might simplify implementation. For example, one might write
  exp : exp '+' exp { $$ = $1; }
%unused @2, $3
  ;
if now the location value of variable 2 and semantic value of variable 3 are unused.

Then one is freed from restraints of the grammar language itself.

  Hans Aberg






reply via email to

[Prev in Thread] Current Thread [Next in Thread]