|Redefining return type for yylex in C++ Scanner??? Wayne@tyx.com (Wayne P Cuddy) (1996-12-15)|
|From:||Wayne P Cuddy <Wayne@tyx.com>|
|Date:||15 Dec 1996 15:50:11 -0500|
|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
Return to the
Search the comp.compilers archives again.