Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!gt-cmmsr!auc!tab From: tab@auc.UUCP (Terrence Brannon ) Newsgroups: comp.lang.c Subject: LEX Question Message-ID: <32240@auc.UUCP> Date: 11 Feb 89 14:48:29 GMT Reply-To: tab@auc.UUCP (0-Terrence Brannon ) Distribution: usa Organization: Atlanta University Center Lines: 12 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