Thread View: comp.sys.next.programmer
3 messages
3 total messages
Started by Jake Blues
Sat, 09 Jan 1993 23:22
NeXT lex
Author: 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.
Re: NeXT lex
Author: Nick Christopher
Date: Sun, 10 Jan 1993 03:32
Date: Sun, 10 Jan 1993 03:32
4 lines
550 bytes
550 bytes
Do you have a newline after the final } ? \n
Re: NeXT lex
Author: Art Isbell
Date: Sun, 10 Jan 1993 22:44
Date: Sun, 10 Jan 1993 22:44
23 lines
1698 bytes
1698 bytes
In article <1993Jan9.232243.14902@pellns.alleg.edu> sunthej@alleg.edu writes: [ description of lex problem deleted ] Although I don't claim to be a lex expert, I seem to have stumbled across a very irritating NeXT 2.1 and 3.0 lex bug: lex doesn't seem to grok '_' in a range of characters making defining C variable names as tokens kinda tough. NeXT lex treats '_' as a space character thus returning separate tokens before and after all occurrences of '_' :-( Replacing all '_' with other characters (e.g., '>', '<', etc.) returns correct tokens. Has anyone else been able to successfully search for tokens containing the '_' character using NeXT's lex? Maybe I'm doing something wrong. Meanwhile, I've downloaded the latest flex and bison to see whether their output can legally be included in commercial apps. I think the FSF's policy may have changed to permit this, but I'm not sure. Anyone else know for sure? -- Art Isbell Cubic Solutions NeXT Registered Developer #745 NeXT software development and consulting NeXTmail: isbell@cats.UCSC.EDU Voice: (408)335-1154 USmail: 95018-9442 Fax: (408)335-2515
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads