aboutsummaryrefslogtreecommitdiffstats
path: root/libparser-generate.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-17 17:45:23 +0200
committerMattias Andrée <maandree@kth.se>2021-04-17 17:45:23 +0200
commit3774c4edde0e62195c4e7d28829d9b39f1f1f39f (patch)
tree3df6757c21133934a1d1ab485c008fab535e0fe3 /libparser-generate.c
parentAdd implement support for character ranges (diff)
downloadlibparser-3774c4edde0e62195c4e7d28829d9b39f1f1f39f.tar.gz
libparser-3774c4edde0e62195c4e7d28829d9b39f1f1f39f.tar.bz2
libparser-3774c4edde0e62195c4e7d28829d9b39f1f1f39f.tar.xz
Fix last commit and use it in calc-example1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libparser-generate.c')
-rw-r--r--libparser-generate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libparser-generate.c b/libparser-generate.c
index a07ca4f..c027300 100644
--- a/libparser-generate.c
+++ b/libparser-generate.c
@@ -377,7 +377,7 @@ emit_and_free_sentence(struct node *node, size_t *indexp)
argv0, low->token->lineno, low->token->column, low->token->character,
high->token->lineno, high->token->column, high->token->character);
}
- printf("static union libparser_sentence sentence_%zu_%zu = {.unary = {"
+ printf("static union libparser_sentence sentence_%zu_%zu = {.char_range = {"
".type = LIBPARSER_SENTENCE_TYPE_CHAR_RANGE, .low = %hhu, .high = %hhu"
"}};\n",
nrule_names, index, (unsigned char)low->token->s[0], (unsigned char)high->token->s[0]);