On Tuesday 25 July 2006 08:41, Frans Englich wrote:
> On Tuesday 25 July 2006 07:30, Paul Eggert wrote:
> > Satya <[EMAIL PROTECTED]> 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


Reply via email to