mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
c++: always define symbol_name
* data/skeletons/lalr1.cc (symbol_name): Always define it, even when it's actually yytname which is used.
This commit is contained in:
@@ -7510,8 +7510,10 @@ If @var{argv} is null, return the size needed to store all the possible
|
||||
values, which is always less than @code{YYNTOKENS}.
|
||||
@end deftypefun
|
||||
|
||||
@deftypefun {const char *} yysymbol_name (@code{symbol_kind_t} @var{symbol})
|
||||
@deftypefun {@r{string type}} yysymbol_name (@code{symbol_kind_t} @var{symbol})
|
||||
The name of the symbol whose kind is @var{symbol}, possibly translated.
|
||||
Depending on the options, may return a @code{const char*} or a
|
||||
@code{std::string}.
|
||||
@end deftypefun
|
||||
|
||||
A custom syntax error function looks as follows. This implementation is
|
||||
|
||||
Reference in New Issue
Block a user