[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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
This document was generated on November 4, 2011 using texi2html 5.0.