mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user