help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Using a Flex -+ lexer with Bison? Bison Class generation?


From: Moretti, Luciano (MED)
Subject: RE: Using a Flex -+ lexer with Bison? Bison Class generation?
Date: Mon, 9 Aug 2004 11:58:03 -0500

>> Is it possible to use a Flex C++ Lexer in a Bison Parser?

>yes.

Do you mind expanding on how to do this, or pointing me to a place that
explains?

>> Also, I found mention on the list (from 2001) that there was 
>> going to be a release of Bison that generated a true C++ class
>> (yes, I know that you can tweak it slightly to compile in C++ 
>> as stand alone functions).  Was this ever completed? I've been 
>> unable to find documentation about it besides a few list posts.

>I don't know what you mean by "a true C++ class", but I'm pretty confident
that bison can do C++.

I mean an encapsulated object (usually defined using the C++ "Class"
keyword) that can be created with "new" and where I can create multiple
instances in different threads without worrying about stomping on global
variables.

>Real men use C though.

Yes, C is nice for lots of stuff, but we have a large C++ code base, and I'm
not really familiar with dealing with Thread safety and multiple instances
in C.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]