Where are there both yytokentype and the corresponding macro definitions?

Peng Yu <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <CABrM6wkkzuJP5Z_t=3JtbkrOTBUwo+fSMFo_7Oqy=_6YexZ-Rw@mail.gmail.com>
Hi,

I see both yytokentype and the corresponding macro definitions in
y.tab.h. It sounds like just one of them will be sufficient. Why are
there both of them?

/* Token type.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
  enum yytokentype
  {
    IF = 258,

/* Tokens.  */
#define IF 258

-- 
Regards,
Peng

_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.