Article View: comp.sys.next.programmer
Article #2265NeXT lex
From: Jake Blues
Date: Sat, 09 Jan 1993 23:22
Date: Sat, 09 Jan 1993 23:22
26 lines
923 bytes
923 bytes
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.
Technical Details
Message-ID:
<1993Jan9.232243.14902@pellns.alleg.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!pellns.alleg.edu!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!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