From: Robin Stocker Date: 2006-04-02T10:04:31+09:00 Subject: Re: [PATCH] parse.y: literal strings for tokens Yukihiro Matsumoto wrote: > Is this notation (token with description) compatible with yacc > implementation other than Bison 2.x? This concern is the reason I > didn't merge the patch. > > matz. Here's a manual for Bison 1 and the notation is also there: http://www.sunsite.ualberta.ca/Documentation/Gnu/bison-1.28/html_mono/bison.html#SEC50 The relevant part: You can associate a literal string token with a token type name by writing the literal string at the end of a %token declaration which declares the name. For example: %token arrow "=>" I installed bison 1.875d and tested it. The only difference is that the description is in quotes (example: "identifier" instead of identifier). But I'm no Yacc/Bison expert, so I don't know if there are other implications when using the token description. Robin