Related articles |
---|
yylex(int a) in flex -+? schmitt@ti.informatik.uni-frankfurt.de (Holger Schmitt) (1998-03-03) |
Re: yylex(int a) in flex -+? sandip@earthling.net (1998-03-07) |
From: | Holger Schmitt <schmitt@ti.informatik.uni-frankfurt.de> |
Newsgroups: | comp.compilers |
Date: | 3 Mar 1998 10:52:53 -0500 |
Organization: | Technische Informatik, J. W. Goethe Universitaet Frankfurt |
Keywords: | lex, C++, question |
Hi,
I use flex (Version 2.5) with the option -+ to generate different
Scanner-classes. I would like to use the different Scanner-routines
yylex with different parameter like yylex(int a).
A new yylex definition with the macro #define YY_DECL doesn't work,
because these funktion isn't defined in the class definition.
Is there a good way for defining a new funktion yylex(int a) in the
different Scanner-classes?
A short source-code example would be very kind.
Thank you
Holger
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.