From: ts Date: 2006-04-02T21:02:09+09:00 Subject: Re: [PATCH] parse.y: literal strings for tokens >>>>> "R" == Robin Stocker writes: R> Here's a manual for Bison 1 and the notation is also there: R> http://www.sunsite.ualberta.ca/Documentation/Gnu/bison-1.28/html_mono/bison.html#SEC50 Well, with a very, very old yacc (Sun) nasun% cat a.y %token DIGIT "digit" %% number : DIGIT %% nasun% nasun% yacc -V a.y yacc: Software Generation Utilities (SGU) Solaris-ELF (4.0) nasun% nasun% more y.tab.c [...] yytoktype yytoks[] = { "DIGIT", 257, "digit", 258, "-unknown-", -1 /* ends search */ }; [...] nasun% If i'm right this mean that it see 2 tokens With the same file moulon% bison -V bison (GNU Bison) 2.1 Written by Robert Corbett and Richard Stallman. Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. moulon% moulon% bison -y a.y moulon% moulon% more y.tab.c [...] enum yytokentype { DIGIT = 258 }; #endif /* Tokens. */ #define DIGIT 258 [...] moulon% Guy Decoux