home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8048 < prev    next >
Encoding:
Text File  |  1993-01-09  |  887 b   |  39 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!pellns.alleg.edu!news
  3. From: sunthej@alleg.edu (Jake Blues)
  4. Subject: NeXT lex
  5. Message-ID: <1993Jan9.232243.14902@pellns.alleg.edu>
  6. Sender: news@pellns.alleg.edu
  7. Reply-To: sunthej@alleg.edu
  8. Organization: Allegheny College
  9. Date: Sat, 9 Jan 1993 23:22:43 GMT
  10. Lines: 27
  11.  
  12.  
  13. I am having a problem with lex on NeXTSTEP 2.1.  It refuses to put the  
  14. final '}' on my main() function when it is transformed to lex.yy.c. ie
  15.  
  16.        %%
  17.  
  18.        ^File:.*     {};
  19.        ^\*[^*].*    {};
  20.        %%
  21.  
  22.        main()
  23.        {
  24.          yylex();
  25.        }
  26.  
  27. is transformed into
  28.  
  29.     main()
  30.     {
  31.         yylex();
  32.  
  33. and I have to close the { by hand.  Has anyone else had this problem?
  34. Anyone have any solutions.
  35.  
  36. I am using lex for the first time (on my own, not for class... I swear) so  
  37. the problem could be the input, but I don't see how.
  38.  
  39.