Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!adm!rbbb@rice.EDU From: rbbb@rice.EDU (David Chase) Newsgroups: comp.unix.wizards Subject: re: argv --> stdin IN LEX Message-ID: <1367@brl-adm.ARPA> Date: Mon, 8-Dec-86 21:26:46 EST Article-I.D.: brl-adm.1367 Posted: Mon Dec 8 21:26:46 1986 Date-Received: Tue, 9-Dec-86 03:54:54 EST Sender: news@brl-adm.ARPA Lines: 24 RTFM! RTFM! RTFM! I QUOTE: In addition to these routines, Lex also permits access to the I/O routines that it uses. They are: 1) input() which returns the next input character; 2) output(c) which writes the character c on the output; and 3) unput(c) pushes the character c back onto the input stream to be read later by input(). By default these routines are provided as macros definitions, but the user can override them and supply private versions. .... Read the rest of "Lex- A Lexical Analyzer Generator" by M. E. Lesk and E. Schmidt for other details, including the lookahead issues, use of yywrap, etc. >>"Look at the code generated by these tools! It's easy to change it!" David