Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!seismo!dimacs.rutgers.edu!aramis.rutgers.edu!remus.rutgers.edu!romulus.rutgers.edu!plona From: plona@romulus.rutgers.edu (Lawrence Plona) Newsgroups: comp.unix.programmer Subject: Re: lex, yacc question Message-ID: Date: 12 Jun 91 23:22:57 GMT References: Distribution: comp Organization: Rutgers Univ., New Brunswick, N.J. Lines: 16 From: ricks@nrl.navy.mil (Richard Schumeyer) > Is there a way to get lex and yacc to read from somewhere other than > stdin? yacc declares "FILE *yyin". A pre-processor might be set up like: extern FILE *yyin; yyin = popen( "/usr/bin/m4 infile", "r" ); yyparse(); pclose( yyin ); -- Sit denique inscriptum in fronte unius "Let it finally be written on cuiusque quid de rebus publicis sentiat the forehead of each man what he - Cicero thinks of open systems"