Redefining return type for yylex in C++ Scanner???

Wayne P Cuddy <Wayne@tyx.com>
15 Dec 1996 15:50:11 -0500

          From comp.compilers

Related articles
Redefining return type for yylex in C++ Scanner??? Wayne@tyx.com (Wayne P Cuddy) (1996-12-15)
| List of all articles for this month |

From: Wayne P Cuddy <Wayne@tyx.com>
Newsgroups: comp.compilers
Date: 15 Dec 1996 15:50:11 -0500
Organization: TYX Corp.
Keywords: yacc, C++, question

I am using flex++ to generate a C++ scanner with the YY_DECL
redefine in order for yylex() to return a C++ class called Token.
However once I define YY_DECL I get a huge amount of errors from the
compiler. I am using Flex2.5.2. Does anyone know of a way to do this
when generating a C++ class? I certianly don't want to the return
type to be int.


Wayne P Cuddy
TYX CORP
Software Architecture
wayne@tyx.com--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.