doc: define the syntax of named references

Reported by Arthur Schwarz.
https://lists.gnu.org/r/help-bison/2022-06/msg00007.html

* doc/bison.texi (Named References): Define the syntax of named
references.
This commit is contained in:
Akim Demaille
2022-09-12 07:18:15 +02:00
parent 290d3d09d4
commit 15b97a0a6a

View File

@@ -5024,7 +5024,12 @@ exp[result]: exp[left] '/' exp[right]
@end group
@end example
@noindent
Like symbol names (@pxref{Symbols}), reference names can contain letters,
underscores, periods, and non-initial digits and dashes. In bracketed
reference names, leading and trailing blanks and comments are ignored:
@samp{[ name ]} and @samp{[/* A */ name /* for references. */]} are
equivalent to @samp{[name]}.
In order to access a semantic value generated by a midrule action, an
explicit name may also be declared by putting a bracketed name after the
closing brace of the midrule action code: