Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!m2c!wpi!lfoard From: lfoard@wpi.wpi.edu (Lawrence C Foard) Newsgroups: comp.lang.c Subject: Re: not the way ... (was Re: Want a way to strip comments from a) Message-ID: <1492@wpi.wpi.edu> Date: 24 Mar 89 07:01:02 GMT References: <7150@siemens.UUCP> <9900010@bradley> <4221@omepd.UUCP> <425@chem.ucsd.EDU> Reply-To: lfoard@wpi.wpi.edu (Lawrence C Foard) Organization: Worcester Polytechnic Institute, Worcester, MA. USA Lines: 32 I tried the comment stripper I poster earlier today on these pathological cases and it seems to get the right answer. Script started on Fri Mar 24 01:56:10 1989 % cat tmp3.tmp Commented should be / /* / */ # / /*****//hello world */ # /hello world */ /* hello /* /* world */ # /* */ hello /* */ # hello /**// /* this input should produce "/ \n" for output */ # / /* */ hello */ # hello */ % ../tmp/a.out