Redirect stdin ?
- From: Lothar Behrens <lothar.behrens@xxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 05:40:26 -0800 (PST)
Hi,
I have a c application (Lex&Yacc based) that parses from stdin. I want
to rewrite the code
a bit to allow reading the source from a char array instead from stdin
without touching the
lex and yacc generated source code.
How could I do that ?
What is about the problem when the buffer is too big to feed the
source to the parser at once ?
Any ideas ?
Thanks, Lothar
.
- Follow-Ups:
- Re: Redirect stdin ?
- From: jameskuyper
- Re: Redirect stdin ?
- From: William Pursell
- Re: Redirect stdin ?
- Prev by Date: Re: Cannot compile with _FILE_OFFSET_BITS = 64
- Next by Date: Re: Cannot compile with _FILE_OFFSET_BITS = 64
- Previous by thread: Uninitialised fields in structures
- Next by thread: Re: Redirect stdin ?
- Index(es):
Relevant Pages
|