Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!watson!ssdken From: ssdken@watson.Claremont.EDU (Ken Nelson) Newsgroups: comp.lang.c Subject: calling yyparse() multiple times Keywords: yacc, lex, parsing Message-ID: <8079@jarthur.Claremont.EDU> Date: 10 Aug 90 18:07:25 GMT Sender: news@jarthur.Claremont.EDU Reply-To: ssdken@watson.Claremont.EDU (Ken Nelson) Lines: 25 This is a varient of a similar question about using Lex and Yacc on a string. I need to do something like this: a_double = eval_yyparse("x+y/2"); a_double = eval_yyparse("sin(x)"); How can I restart the grammar? I think I may be able to do it by re-initializing all the YACC variables that are set at compile time. Anybody see any holes in this idea, or even better a handy dandy set of routines to do it! Thanks, Ken Nelson Principal Engineer Software Systems Design 3627 Padua Av. Claremont, CA 91711 (714) 624-3402