Article View: comp.text.sgml
Article #635Re: Extracting comments from C code
From: Christophe Blaess
Date: Thu, 11 Apr 1996 00:53
Date: Thu, 11 Apr 1996 00:53
13 lines
1173 bytes
1173 bytes
In article <4kg84v$if9@solutions.solon.com>, saroff@pobox.com says... > >I am looking for some documentation tool for extracting comments from C >code to be included into documentation. > You can easily do a little program for Lex wich can extract the comments and put them in an other text file. There are some classical examples for discarding comments - even nested - with Lex.(see 'Lex and Yacc' - O'Reilly) Then you just have to reverse the process. [Of course, C has no nested comments, and I believe I once saw a proof that lex and yacc can't generically handle the language of nested comments, but that hardly matters. -mod]
Technical Details
Message-ID:
<4khl76$svr@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4kg84v$if9@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: ccb@club-internet.fr (Christophe Blaess) Newsgroups: comp.text.sgml,comp.lang.c.moderated,comp.text,,comp.doc,comp.doc.techreports Subject: Re: Extracting comments from C code Date: 10 Apr 1996 19:53:58 -0500 Organization: Grolier Interactive Europe Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4khl76$svr@solutions.solon.com> References: <4kg84v$if9@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Newsreader: WinVN 0.99.7