Comment recognition in Lex, again (still !)
Michael Williams
mike at sdcrdcf.UUCP
Sat May 19 09:00:39 AEST 1984
printf("If you're preparing to handle /* all */ comments,");
/* Be prepared for comments like: /* "these" */
/* "or variants such as: /* "these", "/*", "*/" */" */
/* and mismatched" quotes as "well" */
/* If you're in a comment-istic state, all "quotes" are censored.
* If your (valid state is) "quoted", all comments are ignored.
*/
Mike
More information about the Comp.unix.wizards
mailing list