This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Feature idea for gcc
- From: Michael S. Zick <mszick at goquest dot com>
- To: Martin Schaffner <maschaffner at gmx dot ch>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Sun, 1 Dec 2002 08:30:32 -0600
- Subject: Re: Feature idea for gcc
- References: <Pine.LNX.4.33.0212010142230.3254-100000@kern.srcf.societies.cam.ac.uk>
On Saturday 30 November 2002 08:06 pm, Joseph S. Myers wrote:
>
> This particular proposal can be done with make and external preprocessors;
> no new compiler features at all are needed; just as literate programming
> for C is implemented through external tools (CWEB etc.) that output C
> rather than modifying the compiler.
>
Martin,
Now there is a strong idea for accomplishing your goal...
Base your external processor on one of the many "literate programming"
processors - only extract the *.h rather than the entire source *.c
Perhaps even use a "java-doc" like structure if you prefer.
If you haven't looked much at various "literate programming" processors...
Start at the home page of the LaTeX project - LaTeX supports several dozen
different versions of "literate programming" - check the LaTeX documentation
for the references.
Mike