From: pneyz Newsgroups: comp.os.msdos.djgpp Subject: Re: Utility to strip comments from C/C++ source? Date: Fri, 20 Feb 1998 10:58:19 -0800 Organization: Smoof Team Lines: 23 Message-ID: <34EDD24B.FDE53F83@bethany.edu> References: <34ED0154 DOT 83D5B0C9 AT bethany DOT edu> NNTP-Posting-Host: scz-ca7-12.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > Is there a DJGPP utility to strip comments from files? I started coding > one then realized someone's probably already done it and it would save > me the trouble. Thanks to everyone who responded, you're replies were quite helpful (and someone even sent me a really cool REPLC program!). However, none of them worked completely as they all still bug if they find "/*" somewhere... same with "//", which would probably screw up and source that happened to have a URL embedded in the text. So in a fit of late night coding while waiting for more messages to pop up here with a solution, I coded a program to do that for me. It works great and I've tested it under some pretty perverse commenting styles and it works great. If anyone is interested in it, email me for a copy. Would this be something I should submit to DJGPP? It's a tool for programmers, so I think it might belong. -- /* pneyz / Smoof Team pneyz AT bethany DOT edu "Fine Malt Coding" http://ns.bethany.edu/pneyz/ */