In GLR grammars, $N and @N now yield non-modifiable lvalues.

This commit is contained in:
Paul Eggert
2003-10-05 06:46:53 +00:00
parent 66ef8b9d65
commit 0cc3da3a4e
3 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,11 @@
2003-10-04 Paul Eggert <eggert@twinsun.com>
* data/glr.c (b4_rhs_value, b4_rhs_location): Yield a
non-modifiable lvalue, instead of a modifiable one.
* doc/bison.texinfo (Actions): Document that $$ can
be assigned to. Do not claim that $$ and $N are
array element references: user code should not rely on this.
2003-10-01 Paul Eggert <eggert@twinsun.com>
* src/parse-gram.h (PERCENT_NO_DEFAULT_PREC): New token.