From 15b97a0a6ab49a148cdfbe7d06d12b2624a33f97 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 12 Sep 2022 07:18:15 +0200 Subject: 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. --- doc/bison.texi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/bison.texi b/doc/bison.texi index a4bc037e..b2eddcf8 100644 --- a/doc/bison.texi +++ b/doc/bison.texi @@ -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: -- cgit v1.2.1