home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!pellns.alleg.edu!news
- From: sunthej@alleg.edu (Jake Blues)
- Subject: NeXT lex
- Message-ID: <1993Jan9.232243.14902@pellns.alleg.edu>
- Sender: news@pellns.alleg.edu
- Reply-To: sunthej@alleg.edu
- Organization: Allegheny College
- Date: Sat, 9 Jan 1993 23:22:43 GMT
- Lines: 27
-
-
- I am having a problem with lex on NeXTSTEP 2.1. It refuses to put the
- final '}' on my main() function when it is transformed to lex.yy.c. ie
-
- %%
-
- ^File:.* {};
- ^\*[^*].* {};
- %%
-
- main()
- {
- yylex();
- }
-
- is transformed into
-
- main()
- {
- yylex();
-
- and I have to close the { by hand. Has anyone else had this problem?
- Anyone have any solutions.
-
- I am using lex for the first time (on my own, not for class... I swear) so
- the problem could be the input, but I don't see how.
-
-