Groups | Search | Server Info | Login | Register


Groups > comp.compilers > #154

Re: C or Similar Preprocessor for General Use

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.linkpendium.com!news.linkpendium.com!news.iecc.com!nerds-end
From BGB <cr88192@hotmail.com>
Newsgroups comp.compilers
Subject Re: C or Similar Preprocessor for General Use
Date Thu, 16 Jun 2011 23:27:50 -0700
Organization albasani.net
Lines 35
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <11-06-028@comp.compilers> (permalink)
References <11-06-026@comp.compilers>
NNTP-Posting-Host news.iecc.com
X-Trace gal.iecc.com 1308413417 77016 64.57.183.58 (18 Jun 2011 16:10:17 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Sat, 18 Jun 2011 16:10:17 +0000 (UTC)
Keywords macros
Posted-Date 18 Jun 2011 12:10:17 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref x330-a1.tempe.blueboxinc.net comp.compilers:154

Show key headers only | View raw


On 6/16/2011 2:23 PM, Gene Wirchenko wrote:

>       I am looking for a CLI-driven preprocessor that I can use on a
> Windows system for preprocessing text files (not C programs, BTW). The
> C preprocessor has about the features I need.

> Gene Wirchenko
> [I pointed him at a Windows port of Gnu m4 -John]


fair enough...


just in-case he wants a preprocessor with much more C like syntax (IMHO
m4 is a bit... weird...), I have put mine up on my server:
http://cr88192.dyndns.org/bgb_sapp.c

my server is not always up, as this is a personally-run server (at my
house, behind an ADSL connection).


was going to slap an MIT style license on it, but I noted I had already
put it under public domain, either way, it is free to use it however.

it does support a number of extensions though from the standard C
preprocessor, such as:
delayed expansion (via "##"/"###"/... directives);
block macros ("#macro name(args) ... #endmacro" IIRC);
in-place substitution ("$(name)");
...

but, sadly, these features are not really documented.

but, hell, in case it might be helpful, I am putting it up.

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

C or Similar Preprocessor for General Use Gene Wirchenko <genew@ocis.net> - 2011-06-16 14:23 -0700
  Re: C or Similar Preprocessor for General Use Gene <gene.ressler@gmail.com> - 2011-06-16 19:03 -0700
  Re: C or Similar Preprocessor for General Use BGB <cr88192@hotmail.com> - 2011-06-16 23:27 -0700
  C or Similar Preprocessor for General Use ray roth <rayroth@pacbell.net> - 2011-06-17 00:03 -0700
  Re: C or Similar Preprocessor for General Use Robbert Haarman <comp.compilers@inglorion.net> - 2011-06-17 10:25 +0200
  Re: C or Similar Preprocessor for General Use Roberto Waltman <usenet@rwaltman.com> - 2011-06-17 12:03 -0400
  Re: C or Similar Preprocessor for General Use "Akakima" <akakima33@gmail.com> - 2011-06-17 12:56 -0400

csiph-web