Threadsafe parser generators?

Wilf Coles <c.coles@slh0633.wins.icl.co.uk>
7 Dec 1996 23:08:50 -0500

          From comp.compilers

Related articles
Threadsafe parser generators? c.coles@slh0633.wins.icl.co.uk (Wilf Coles) (1996-12-07)
Re: Threadsafe parser generators? jlilley@empathy.com (1996-12-09)
Re: Threadsafe parser generators? Martin.Jourdan@inria.fr (1996-12-10)
Re: Threadsafe parser generators? car@mothra.lbl.gov (Chuck Rendleman) (1996-12-14)
Re: Threadsafe parser generators? meissner@cygnus.com (Michael Meissner) (1996-12-15)
Re: Threadsafe parser generators? paulpaul@knoware.nl (1996-12-15)
Re: Threadsafe parser generators? c.coles@slh0633.wins.icl.co.uk (Wilf Coles) (1996-12-24)
| List of all articles for this month |

From: Wilf Coles <c.coles@slh0633.wins.icl.co.uk>
Newsgroups: comp.compilers
Date: 7 Dec 1996 23:08:50 -0500
Organization: ICL High Performance Systems
Keywords: C, parallel

Does anyone know of any threadsafe parser generators (for C),
i.e. that will generate parsers to work in a multi threaded
environment. All of the parser generators that I am aware of rely on
global or static data and so it is not possible to run two instances
of a parser concurrently in two different threads. Do the C++ parser
generators have this capability?


I think that it would be possible to change all the static/global data
references to be dereferenced through a pointer which may then be
derived in a thread specific manner but it may be tricky identifying
all such references in the generated code.


Any ideas anyone?


TVMIA
Wilf Coles
wilf@slh0633.wins.icl.co.uk
[Doesn't bison do this if you set the reentrant flag? -John]


--


Post a followup to this message

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