Topic: Request: (f)LEX for C++


Author: caenevet@lifl.lifl.fr (Caenevet Christophe)
Date: 23 Feb 1993 12:41:14 GMT
Raw View
 As anybody heard of flex or lex made for-with C++ streams ?
 Of course BISON or YACC can work in C++ (even if there's a lot of warnings..)


    THANKS IN ADVANCE


     Christopher
         ________________
         caenevet@lifl.fr





Author: allensd@eng.auburn.edu (Sean D. Allen)
Date: Fri, 26 Feb 1993 01:08:58 GMT
Raw View
In article 1md61aINNkqc@netserver.univ-lille1.fr, caenevet@lifl.lifl.fr (Caenevet Christophe) writes:
>
>  As anybody heard of flex or lex made for-with C++ streams ?
>  Of course BISON or YACC can work in C++ (even if there's a lot of warnings..)
>

I am currently using lex++ and yacc++, but as of now am finding them to be misnomers!
So far the only way I have been able to make them use stream I/O is by redefining
ECHO...i.e.

#undef ECHO
#define ECHO  cout << yytext;

Unfortunatly this does not take care of *yyin and *yyout.  It does tend to clear up
some confusing output though.