Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!samsung!transfer!lectroid!mordor!leavitt From: leavitt@mordor.hw.stratus.com (Will Leavitt) Newsgroups: comp.lang.c Subject: using lex with strings, not files Summary: Huh? Keywords: lex, yacc, strings Message-ID: <5384@lectroid.sw.stratus.com> Date: 4 May 91 15:50:29 GMT Sender: usenet@lectroid.sw.stratus.com Reply-To: leavitt@mordor.hw.stratus.com (Will Leavitt) Organization: Stratus Computer, Hardware Engineering Lines: 16 Hi- I'd like to use lex & yacc to parse strings within an application, but they seem to be hardwired to take their input from stdin. What is the cannonical way to get them to work on a string? Thanks! -will leavitt@mordor.hw.stratus.com -- ............................................................................... this content-free posting has been brought to you by: Will Leavitt 508-490-6231 leavitt@mordor.hw.stratus.com