(flex.info.gz) ERASEME55
Info Catalog
(flex.info.gz) I need to scan if-then-else blocks and while loops
(flex.info.gz) FAQ
(flex.info.gz) ERASEME56
ERASEME55
=========
To: Colin Paul Adams <colin@colina.demon.co.uk>
Subject: Re: Flex C++ classes and Bison
In-reply-to: Your message of 09 Aug 1997 17:11:41 PDT.
Date: Fri, 15 Aug 1997 10:48:19 PDT
From: Vern Paxson <vern>
> #define YY_DECL int yylex (YYSTYPE *lvalp, struct parser_control
> *parm)
>
> I have been trying to get this to work as a C++ scanner, but it does
> not appear to be possible (warning that it matches no declarations in
> yyFlexLexer, or something like that).
>
> Is this supposed to be possible, or is it being worked on (I DID
> notice the comment that scanner classes are still experimental, so I'm
> not too hopeful)?
What you need to do is derive a subclass from yyFlexLexer that provides
the above yylex() method, squirrels away lvalp and parm into member
variables, and then invokes yyFlexLexer::yylex() to do the regular scanning.
Vern
Info Catalog
(flex.info.gz) I need to scan if-then-else blocks and while loops
(flex.info.gz) FAQ
(flex.info.gz) ERASEME56
automatically generated byinfo2html