This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: New Cpp not right for non-C files


> We suggest you use a real general-purpose macro preprocessor, such as
> M4, instead.

<shudder>

Although in theory M4 is capable of doing any substitution job, it, err,
takes some getting used to. There are other preprocessors out there that
are easier to use. One of them is a program that I have written, called
Tm. See <http://www.pds.twi.tudelft.nl/~reeuwijk/software/Tm/index.html>.
Don't be fooled by the emphasis on code generation for data-structure
manipulation, there is a very capable preprocessor in there. The original
poster may even prefer it over cpp.

Tm is a mature program (10 years of active duty), and is available under
the GPL.

-- 
Kees van Reeuwijk, Delft University of Technology
http://www.pds.twi.tudelft.nl/~reeuwijk

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]