bison-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] Re: named references


From: Akim Demaille
Subject: Re: [PATCH] Re: named references
Date: Fri, 20 Mar 2009 17:46:14 +0100


Le 20 mars 09 à 16:17, Joel E. Denny a écrit :

/* an ambiguity because of dot issue; there is an additional
   explaination */
if_stmt: IF expr THEN stmt ELSE stmt.list FI
          { $if_stmt = new IfStmt($expr, $stmt, $stmt.list); };
interpreter.ypp:74.50-59: reference is ambiguous: `$stmt.list'
interpreter.ypp:73.23-26: (may refer to: `stmt')
interpreter.ypp:73.33-41: (may also refer to: `stmt.list')
interpreter.ypp:74.50-59: (you may consider using `$[stmt]' or
`$[stmt.list]')

In general, it might be nicer if the "may refer to" messages always
include the full bracketed expressions.  Then there's slightly less to
read in the above messages:

 interpreter.ypp:74.50-59: reference is ambiguous: `$stmt.list'
 interpreter.ypp:73.23-26: (may refer to: `$[stmt].list')
 interpreter.ypp:73.33-41: (may also refer to: `$[stmt.list]')

This is a very minor improvement. Don't worry about it if it's too much
trouble.

I like this improvement. Note though that this is not "ambiguous", this is rather "misleading".



reply via email to

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