Xref: utzoo comp.lang.misc:2708 comp.compilers:459 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!decvax!ima!compilers-sender From: ssroy@phoenix.princeton.edu (Steve Scot Roy) Newsgroups: comp.lang.misc,comp.compilers Subject: Is there a reentrant YACC around? Keywords: YACC, reentrant Message-ID: <3412@ima.ima.isc.com> Date: 28 Feb 89 14:26:23 GMT Sender: compilers-sender@ima.ima.isc.com Reply-To: ssroy@phoenix.princeton.edu (Steve Scot Roy) Followup-To: poster Organization: Princeton University, NJ Lines: 19 Approved: compilers@ima.UUCP Howdy. I am writing a parser that uses YACC and it would be convenient if I had a reentrant YACC. Does such a thing exist? Where do I go to get it if it does? Is Bison reentrant? Thanks. Steve Roy ssr@courant.princeton.edu [If by reentrant you mean recursively callable, the standard AT&T yacc parser can be made so without much effort. You take all of the static arrays and either make them auto's or else malloc them. If you really mean reentrant, that's more a function of the compiler you're using. -John] -- Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU Plausible paths are { decvax | harvard | yale | bbn}!ima Please send responses to the originator of the message -- I cannot forward mail accidentally sent back to compilers. Meta-mail to ima!compilers-request