a lex question

anderson at uwvax.ARPA anderson at uwvax.ARPA
Wed May 2 14:48:40 AEST 1984


----
The following "lex" expression is supposed to accept /* ... */ style
comments.  It doesn't quite work... it recognizes the comment, but then
the closing / seems to be processed again (resulting in a syntax error).

"/*"([^*]|("*"/[^/]))*"*/"

Maybe I'm overlooking something obvious.  If you can figure out what it
is, please reply by mail.  Thanks --  David Anderson (uwvax!anderson)



More information about the Comp.unix.wizards mailing list