LEX Question

Terrence Brannon tab at auc.UUCP
Sun Feb 12 00:48:29 AEST 1989


Ok, I have written a small routine in lex and if i compile 
it (lex source, cc lex.yy.c), and then run it (a.out) it works fine
accepting values. 

My question is, is there anyway that I could have the lex program accept
integers from somewhere other that stdin? I a hoping to be able to do
something along the lines of ( result = lexroutine(num);)

In other words, is there any way to pass a value to the lex program instead
of it getting its value from stdin?

...gatech!auc!tab



More information about the Comp.lang.c mailing list