home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8054 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.6 KB

  1. Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!cats.ucsc.edu!isbell
  2. From: isbell@cats.ucsc.edu (Art Isbell)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: NeXT lex
  5. Message-ID: <1iq8s9INN1f5@darkstar.UCSC.EDU>
  6. Date: 10 Jan 93 22:44:25 GMT
  7. References: <1993Jan9.232243.14902@pellns.alleg.edu>
  8. Organization: Cubic Solutions - NeXT software development and consulting
  9. Lines: 23
  10. NNTP-Posting-Host: si.ucsc.edu
  11.  
  12.  
  13. In article <1993Jan9.232243.14902@pellns.alleg.edu> sunthej@alleg.edu writes:
  14.  
  15. [ description of lex problem deleted ]
  16.  
  17. Although I don't claim to be a lex expert, I seem to have stumbled across a
  18. very irritating NeXT 2.1 and 3.0 lex bug: lex doesn't seem to grok '_' in a
  19. range of characters making defining C variable names as tokens kinda tough.
  20. NeXT lex treats '_' as a space character thus returning separate tokens before
  21. and after all occurrences of '_' :-(  Replacing all '_' with other characters
  22. (e.g., '>', '<', etc.) returns correct tokens.
  23.  
  24. Has anyone else been able to successfully search for tokens containing the '_'
  25. character using NeXT's lex?  Maybe I'm doing something wrong.  Meanwhile, I've
  26. downloaded the latest flex and bison to see whether their output can legally be
  27. included in commercial apps.  I think the FSF's policy may have changed to
  28. permit this, but I'm not sure.  Anyone else know for sure?
  29. -- 
  30.  
  31. Art Isbell                                                      Cubic Solutions
  32. NeXT Registered Developer #745         NeXT software development and consulting
  33. NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
  34. USmail: 95018-9442                                           Fax: (408)335-2515
  35.