home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12284 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.5 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!daffy!uwvax!uchinews!quads!pynq
  2. From: pynq@quads.uchicago.edu (George Jetson)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question about lex
  5. Message-ID: <1992Aug13.163307.21298@midway.uchicago.edu>
  6. Date: 13 Aug 92 16:33:07 GMT
  7. Article-I.D.: midway.1992Aug13.163307.21298
  8. References: <1992Aug13.145803.3008@ccd.harris.com>
  9. Sender: news@uchinews.uchicago.edu (News System)
  10. Reply-To: pynq@midway.uchicago.edu
  11. Organization: D. J. Dougherty & Associates
  12. Lines: 19
  13.  
  14. In article <1992Aug13.145803.3008@ccd.harris.com> djs@controls.ccd.harris.com (Dan J. Smith) writes:
  15. >
  16. >
  17. >I'm trying to call the lex output functions generated by two different lex input
  18. >files from the same program. But, they both generate output functions called
  19. >yylex and have the same global variables so this does not work.
  20.  
  21. FLEX has this one sussed.  It has the ability to create "re-entrant parsers",
  22. which don't use global variables.  It also has, I believe, the ability
  23. to create multiple parsers with subtley different global variable names.
  24.  
  25. ************************************************************************
  26. Please don't drink the battery acid, it tastes bad and will hurt you.
  27. Also, don't bite the tyres, especially when the bike is moving.
  28. (Our lawyers made us put this in this manual.)
  29.  
  30.     - pynq@quads.uchicago.edu, who is still costing the net
  31.       hundreds, if not thousands, of dollars, every time he posts -
  32. ************************************************************************
  33.