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