LEX Question
Earle R. Horton
earleh at eleazar.dartmouth.edu
Sat Feb 25 11:03:20 AEST 1989
In article <1521 at fig.bbn.com> rsalz at bbn.com (Rich Salz) writes:
>In <1989Feb24.165832.9921 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) writes:
><... If you redefine input(), you
><have to provide your own buffering scheme, or have it provided for you
><by a library. ...
>
>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.
More information about the Comp.lang.c
mailing list