[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison 1.75 m4-related bug

From: Gustav Hållberg
Subject: bison 1.75 m4-related bug
Date: Sat, 28 Dec 2002 01:21:22 -0000
User-agent: IMHO/0.98.3 (Webmail for Roxen)

The attached extremely simple .y file generates a broken foo.tab.c
when generated with: bison -t foo.y

The intermediate m4 file contains the following:

          [["$end", "error", "$undefined", "']'", "$accept", "start",

Which is slightly broken because of the ] in the middle there (at
least with my GNU m4 version 1.4.1), which gets lost in the output,
and instead an extra ] appears at the end of that line of output:

static const char *const yytname[] =
  "$end", "error", "$undefined", "''", "$accept", "start", 0]

- Gustav

Attachment: foo.y
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]