thread safe lexer (flex?)

"Josh N. Pritikin" <jpab+@andrew.cmu.edu>
Sat, 13 Jun 1992 15:21:53 GMT

          From comp.compilers

Related articles
thread safe lexer (flex?) jpab+@andrew.cmu.edu (Josh N. Pritikin) (1992-06-13)
Re: thread safe lexer (flex?) jpab+@andrew.cmu.edu (Josh N. Pritikin) (1992-06-14)
| List of all articles for this month |
Newsgroups: comp.compilers
From: "Josh N. Pritikin" <jpab+@andrew.cmu.edu>
Keywords: lex, parallel, question
Organization: Compilers Central
Date: Sat, 13 Jun 1992 15:21:53 GMT

I'm writing a program that has multiple threads running the same
compiler. With bison, I can make a reentrant parser (%pure_parser) but
flex doesn't seem to support the same option. All I really need is to
collect all the flex globals into one structure that I can make a
thread specific global. Has someone already done this?


thanks, joshp
[Is there a reentrant stdio that a reentrant lex could call to read its
input? -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.