[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: %token QUOTE "\""
From: |
Frans Englich |
Subject: |
Re: Fwd: %token QUOTE "\"" |
Date: |
Sat, 29 Jul 2006 20:47:57 +0000 |
User-agent: |
KMail/1.8.50 |
On Tuesday 25 July 2006 08:41, Frans Englich wrote:
> On Tuesday 25 July 2006 07:30, Paul Eggert wrote:
> > Satya <address@hidden> writes:
> > > The problem is this:
> > > In file parse-gram.y we have a rule for string_as_id:
> >
> > Sorry, I'm still lost.
>
> In the generated parser, my static const char *const yytname[] has this
> entry:
>
> "\"\\\"\""
>
> Which was generated by:
>
> %token QUOTE "\""
>
> I would like the entry to read:
>
> "\"\"\""
>
> (or "'\"'", since """ isn't very readable)
>
> Just insert '%token QUOTE "\"' in a grammar of yours, and it will expose
> the problem, I think.
The Bison manual actually discuss this, see "Directive: %token-table". Might
be interesting when implementing a fix.
(Is there a reason why the documentation hasn't been updated for Bison 2.2?
http://www.gnu.org/software/bison/manual/html_mono/bison.html mentions 2.1.)
Cheers,
Frans