doc/bison.texinfo: Change @samp{$<@dots{}>} to @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.

This commit is contained in:
Marc Autret
2001-08-08 21:55:36 +00:00
parent 957d4dbf16
commit fdc6758b79
3 changed files with 10 additions and 2 deletions
+6
View File
@@ -1,3 +1,9 @@
2001-08-08 Marc Autret <[email protected]>
* doc/bison.texinfo: Change @samp{$<@dots{}>} to
@samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
Reported by Fabrice Bauzac.
2001-08-08 Marc Autret <[email protected]> 2001-08-08 Marc Autret <[email protected]>
* ChangeLog: Adjust. * ChangeLog: Adjust.
+2
View File
@@ -1,8 +1,10 @@
Bison was originally written by Robert Corbett. It would not be what Bison was originally written by Robert Corbett. It would not be what
it is today without the invaluable help of these people: it is today without the invaluable help of these people:
Akim Demaille [email protected]
Daniel Hagerty [email protected] Daniel Hagerty [email protected]
David J. MacKenzie [email protected] David J. MacKenzie [email protected]
Fabrice Bauzac [email protected]
Hans Aberg [email protected] Hans Aberg [email protected]
Jesse Thilo [email protected] Jesse Thilo [email protected]
Jim Meyering [email protected] Jim Meyering [email protected]
+2 -2
View File
@@ -2730,8 +2730,8 @@ The mid-rule action can also have a semantic value. The action can set
its value with an assignment to @code{$$}, and actions later in the rule its value with an assignment to @code{$$}, and actions later in the rule
can refer to the value using @code{$@var{n}}. Since there is no symbol can refer to the value using @code{$@var{n}}. Since there is no symbol
to name the action, there is no way to declare a data type for the value to name the action, there is no way to declare a data type for the value
in advance, so you must use the @samp{$<@dots{}>} construct to specify a in advance, so you must use the @samp{$<@dots{}>@var{n}} construct to
data type each time you refer to this value. specify a data type each time you refer to this value.
There is no way to set the value of the entire rule with a mid-rule There is no way to set the value of the entire rule with a mid-rule
action, because assignments to @code{$$} do not have that effect. The action, because assignments to @code{$$} do not have that effect. The