Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh From: earleh@eleazar.dartmouth.edu (Earle R. Horton) Newsgroups: comp.lang.c Subject: Re: LEX Question Message-ID: <12381@dartvax.Dartmouth.EDU> Date: 25 Feb 89 01:03:20 GMT References: <1521@fig.bbn.com> Sender: news@dartvax.Dartmouth.EDU Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton) Organization: Thayer School of Engineering Lines: 15 In article <1521@fig.bbn.com> rsalz@bbn.com (Rich Salz) writes: >In <1989Feb24.165832.9921@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: ><... If you redefine input(), you > >You will probably also want to arrange to increment yylineno on every >newline. This is often done in the pattern/action part. This is only true if you USE yylineno. Lex doesn't use it for anything beyond keeping track of it for you. If you don't care what the line number is, lex doesn't either. Earle R. Horton. 23 Fletcher Circle, Hanover, NH 03755--Graduate student. He who puts his hand to the plow and looks back is not fit for the kingdom of winners. In any case, 'BACK' doesn't work.