|Lex,Yacc for ThreadSafe Applications? email@example.com (2000-07-18)|
|Re: Lex,Yacc for ThreadSafe Applications? firstname.lastname@example.org (Kamal R. Prasad) (2000-07-31)|
|Re: Lex,Yacc for ThreadSafe Applications? email@example.com (2000-08-04)|
|From:||"Kamal R. Prasad" <firstname.lastname@example.org>|
|Date:||31 Jul 2000 23:51:51 -0400|
|Keywords:||lex, yacc, comment|
you may want to try bison and flex which are modified versions of yacc and
also available (though I haven't used them) are bison++ and flex++.
bison has a mechanism wherein you could specify a prefix so that you
create AAparse(), BBparse() etc.. instead of the std yyparse().
the global variables are also changed accordingly.you can call each of
these instances in each of the threads.this way, more than 1 thread can
call each of the parse() functions at the same time. ditto for flex.
if you use the C++ version, that would give you the flexibility to create
more than 1 instance dynamically.
[Flex C++ scanners should be OK for threads. Haven't seen a thread-safe
Return to the
Search the comp.compilers archives again.