[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About C++ and flex
From: |
Akim Demaille |
Subject: |
Re: About C++ and flex |
Date: |
22 Nov 2001 17:20:01 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
| At 17:41 -0500 2001/11/21, Jesus M. Diaz Hernandez wrote:
| >First, i'm trying to use the -+ option to generate an C++ scanner, but i
| >need to use the scanner with a generated bison function. So: how can i
| >especify that yylex() is really yyFlexLexer::yylex()? Is that a clean way
| >to do that? -diferent that #define ;)
|
| In my .y file, I have put:
| %{
| ...
| #include "op_parser.h"
|
| FlexLexer* op_lexer;
| inline int yylex() { return op_lexer->yylex(); }
| ...
| %}
Did you ever experience weird performance issues with C++? I know
Laurent had disastrous performances which suddenly vanished when he
stopped using -+. Maybe he recalls what the problem was.
- About C++ and flex, Jesus M. Diaz Hernandez, 2001/11/21
- Re: About C++ and flex, Hans Aberg, 2001/11/22
- Re: About C++ and flex,
Akim Demaille <=
- Re: About C++ and flex, Hans Aberg, 2001/11/22
- Re: About C++ and flex, Laurent Mascherpa, 2001/11/22
- Re: About C++ and flex, Hans Aberg, 2001/11/23
- Re: About C++ and flex, Hans Aberg, 2001/11/23
- Re: About C++ and flex, Laurent Mascherpa, 2001/11/23