Comment recognition in Lex, again
chris at umcp-cs.UUCP
chris at umcp-cs.UUCP
Fri May 4 13:59:25 AEST 1984
A Lex expression that matches C comments:
comment "/*"(\*[^/]|[^*]*)*"*/"
(The * after the first ] shouldn't be necessary, I think, but you
did specify that the expression come from working code...)
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690
UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at maryland
More information about the Comp.unix.wizards
mailing list