🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #1298

Re: YACC & LEX

#1298
From: Patrick Reed
Date: Sun, 17 Jun 1990 05:43
14 lines
1067 bytes
In article <111@probtek.UUCP> venky@probtek.UUCP (venkatesh nadamuni) writes:
>I am using lex and yacc to write a parser which converts one
>data format to another. I would like this parsing routine to be
>a menu sub fuction of another main program.... 
>File2.inp, It still reports errors from previous File1.inp. 
>Is there any way of reinitialising the YACC globals at runtime ?

If you are looking for a simple but possibly crude method,
you could setup your parser as seperate program and then
fork and exec it from the menu program, passing it file
names and whatever else in command line arguments or a
temporary data file.

p. reed
Technical Details
Message-ID: <3293@usceast.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!emory!hubcap!ncrcae!usceast!reed
References: <111@probtek.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!emory!hubcap!ncrcae!usceast!reed
From: reed@usceast.UUCP (Patrick Reed)
Newsgroups: comp.lang.misc
Subject: Re: YACC & LEX
Keywords: Initializing the globals
Message-ID: <3293@usceast.UUCP>
Date: 17 Jun 90 05:43:25 GMT
References: <111@probtek.UUCP>
Distribution: usa
Organization: University of South Carolina, Columbia
Lines: 14