diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2022-09-12 07:18:15 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2022-09-12 07:24:21 +0200 |
commit | 15b97a0a6ab49a148cdfbe7d06d12b2624a33f97 (patch) | |
tree | d4d4b47a436d0fe5cfef336999d37ffcc4b5e923 | |
parent | 290d3d09d440a7fc699e9553b0357ec900726809 (diff) | |
download | bison-15b97a0a6ab49a148cdfbe7d06d12b2624a33f97.tar.gz |
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.
-rw-r--r-- | doc/bison.texi | 7 |
1 files changed, 6 insertions, 1 deletions
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: |