Re: bison's yyparse() several times

hanss@stud.cs.uit.no (Hans Sundsfjord)
Mon, 30 May 1994 11:13:52 GMT

          From comp.compilers

Related articles
bison's yyparse() several times hanss@stud.cs.uit.no (1994-05-19)
Re: bison's yyparse() several times Wilfred.Hansen@cs.cmu.edu (1994-05-20)
Re: bison's yyparse() several times hanss@stud.cs.uit.no (1994-05-30)
| List of all articles for this month |

Newsgroups: comp.compilers
From: hanss@stud.cs.uit.no (Hans Sundsfjord)
Keywords: yacc, parse
Organization: University of Tromsoe
References: 94-05-074
Date: Mon, 30 May 1994 11:13:52 GMT

>[how do I call a bison yyparse() more than once?]


I received several answers to my previous posting.
Thanks to you!


To summarize, there was actually two things to do.


1. Call bison's cleanup routine
yyrestart(yyin);


2. Use flex cleanup facility. Add to the action part of a flex specification:


<<EOF>> {YY_NEW_FILE; yyterminate();}


Regards from
Hans:-)


--
| Hans Sundsfjord // phone: (+47) 77644102 |
| Dept. of Computer Science/IMR // phone: (+47) 77644051 |
| University of Tromsoe // fax: (+47) 77644580 |
| N-9037 TROMSOE, NORWAY // e-mail: hanss@stud.cs.uit.no |
--


Post a followup to this message

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