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