mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
skeletons: make the eof token translatable if i18n is enabled
* src/output.c (has_translations): New. (prepare_symbol_names): Translate endtoken if the user already translated tokens. * examples/c/bistromathic/parse.y, src/parse-gram.y: Simplify.
This commit is contained in:
@@ -81,7 +81,6 @@
|
||||
RPAREN ")"
|
||||
EQUAL "="
|
||||
EXIT "exit"
|
||||
EOF 0 _("end of file")
|
||||
<double>
|
||||
NUM _("double precision number")
|
||||
<symrec*>
|
||||
@@ -236,7 +235,7 @@ yylex (const char **line, YYSTYPE *yylval, YYLTYPE *yylloc)
|
||||
case '(': return TOK_LPAREN;
|
||||
case ')': return TOK_RPAREN;
|
||||
|
||||
case 0: return TOK_EOF;
|
||||
case 0: return TOK_YYEOF;
|
||||
|
||||
default:
|
||||
// Numbers.
|
||||
|
||||
Reference in New Issue
Block a user