bison-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] Named symbol references


From: Akim Demaille
Subject: Re: [PATCH] Named symbol references
Date: Sun, 28 Jun 2009 13:57:47 +0200

Too eager to play with your patch, I made several errors in my grammar. I had a $from.name_get() but I forgot to declare [from]. Bison answered:

ugrammar-pruned.y:534.37-50: reference is invalid: `$from.name_get', symbol not found

IMHO it should refer to $from, not to $from.name_get.

Also, I had a $9foo, where 9 should have been removed. It accepted $9 and left the "foo" attached to the expansion of $9. Now that we have $ [] to make what we mean clear, I think that it should complain about $9foo, like it does for the grammar symbol 9foo. We should support $[9]foo for those who really mean that.

This applies to other values of 9 and foo :)




reply via email to

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