You might try the newsgroup comp.compilers on this question. I think people would rather put the stuff in different threads, each with its own pure lexer/parser. Then each thread sends binary queries, the latter which makes sure to keep the database consistent. Thus, you need to figure out how to make a Flex/Bison combination pure.

At 14:00 -0700 2005/05/29, Mohit Jaggi wrote:
I am trying to process multiple interleaved streams of data in a
single process/thread using bison/flex. Let us say I am running a
server and have thousands of clients sending me requests at the same
time. [Call it multiplexing between input files]
I think to do this I have to find a way to save the state of flex and
bison generated code to memory and restore it when I get back to this
client. Has anyone tried this before?


_______________________________________________
Help-flex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-flex

Reply via email to