diff options
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c index baa5d803..3d60ab36 100644 --- a/src/reader.c +++ b/src/reader.c @@ -954,6 +954,10 @@ check_and_convert_grammar (void) if (!eoftoken) { eoftoken = symbol_get ("YYEOF", empty_loc); + if (eoftoken->content->class == nterm_sym) + complain (&eoftoken->location, complaint, + _("rule given for %s, which is a token"), + eoftoken->tag); eoftoken->content->class = token_sym; eoftoken->content->number = 0; /* Value specified by POSIX. */ |