summaryrefslogtreecommitdiff
path: root/src/output.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-10 09:26:31 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-12 13:56:43 +0200
commit95421df67b21f7a508404b11f51d27e384335ea1 (patch)
tree6476f5251233f57cc8eac76e72530463b164ddbe /src/output.c
parenta4ed94bc13de329773be1cc065176da15061fd6c (diff)
downloadbison-95421df67b21f7a508404b11f51d27e384335ea1.tar.gz
tokens: define the "$undefined" token kind
* data/skeletons/bison.m4 (b4_symbol_token_kind): Give a definition to $undefined. (b4_token_visible_if): $undefined has an id. * src/output.c (prepare_symbol_definitions): Stop lying: $undefined _is_ a token. * tests/input.at: Adjust.
Diffstat (limited to 'src/output.c')
-rw-r--r--src/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output.c b/src/output.c
index f759fc8f..0f6ee5b5 100644
--- a/src/output.c
+++ b/src/output.c
@@ -549,8 +549,7 @@ prepare_symbol_definitions (void)
MUSCLE_INSERT_INT (key, sym->content->user_token_number);
SET_KEY ("is_token");
- MUSCLE_INSERT_INT (key,
- i < ntokens && sym != undeftoken);
+ MUSCLE_INSERT_INT (key, i < ntokens);
SET_KEY ("number");
MUSCLE_INSERT_INT (key, sym->content->number);