Thread View: net.bugs
1 messages
1 total messages
Started by P. Tucker Withington
Mon, 07 Jan 1985 23:08
lex right context bug ({name}*/&)
Author: P. Tucker Withington
Date: Mon, 07 Jan 1985 23:08
Date: Mon, 07 Jan 1985 23:08
20 lines
1130 bytes
1130 bytes
Index: lex 4.1 8/11/83 (BSD); 1.4 ? (Sys. V)
The following fragment appears to raise a bug in lex. When the *-ed expression
matches 0 characters (e.g., & is the first input), yytext comes back as "&"
rather than "". I am able to work around with a judicious REJECT, but I don't
think I should have to. Any opinions or ideas? Am I missing something?
name [0-9A-Za-z.\-]
%%
{name}*/& {
if(yytext[0] == '&')
printf("Bug!\n");
}
o.o --tucker
~
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