diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 11:07:03 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 13:56:44 +0200 |
commit | 05be0fef9517ab75bbd6da6741eb9d2e864e11c3 (patch) | |
tree | 84919b636a57985b4df204b196578f87a737a276 /src/parse-gram.h | |
parent | 72c9fa4510eb677cf80feb0d161eb38f97ddffe9 (diff) | |
download | bison-05be0fef9517ab75bbd6da6741eb9d2e864e11c3.tar.gz |
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.
Diffstat (limited to 'src/parse-gram.h')
-rw-r--r-- | src/parse-gram.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse-gram.h b/src/parse-gram.h index ab0f6d80..ac501c5f 100644 --- a/src/parse-gram.h +++ b/src/parse-gram.h @@ -77,7 +77,7 @@ extern int gram_debug; # define GRAM_TOKENTYPE enum gram_tokentype { - GRAM_EOF = 0, /* "end of file" */ + GRAM_EOF = 0, /* $end */ GRAM_ERRCODE = 1, /* error */ GRAM_UNDEF = 2, /* $undefined */ STRING = 3, /* "string" */ |