home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12324 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.1 KB  |  32 lines

  1. Path: sparky!uunet!infoserv!rick
  2. From: rick@rick.infoserv.com (Rick Klement)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question about lex
  5. Message-ID: <50.30116@rick.infoserv.com>
  6. Date: 14 Aug 92 03:52:19 GMT
  7. References: <1992Aug13.145803.3008@ccd.harris.com>
  8. Organization: Rick's Place, San Jose, CA, USA
  9. Lines: 21
  10.  
  11. In article <1992Aug13.145803.3008@ccd.harris.com>, djs@controls.ccd.harris.com (Dan J. Smith) writes:
  12. > I'm trying to call the lex output functions generated by two different lex input
  13. > files from the same program. But, they both generate output functions called
  14. > yylex and have the same global variables so this does not work.
  15. > My question is: Is there any way to link two lex output files into
  16. > the same program. I've had several ideas but they turned into dead ends pretty 
  17. > quickly.
  18.  
  19. That's what
  20.  
  21.     sed 's/yy/zz/g' some_lex_output_file.c >modified_lex_output_file.c
  22.  
  23. is for...
  24. -- 
  25. Rick Klement - email:   rick@infoserv.com
  26.  
  27. #include <standard.disclaimer>
  28. A respected software manager once said: "There may even be some
  29. Computer Science graduates that can actually do useful programming." or
  30. something like that. I know who but I'm not telling...
  31.