summaryrefslogtreecommitdiff
path: root/src/parse-gram.h
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-12 11:07:03 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-12 13:56:44 +0200
commit05be0fef9517ab75bbd6da6741eb9d2e864e11c3 (patch)
tree84919b636a57985b4df204b196578f87a737a276 /src/parse-gram.h
parent72c9fa4510eb677cf80feb0d161eb38f97ddffe9 (diff)
downloadbison-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.h2
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" */