Groups | Search | Server Info | Login | Register


Groups > comp.compilers > #158

Re: C or Similar Preprocessor for General Use

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news.misty.com!news.iecc.com!nerds-end
From "Akakima" <akakima33@gmail.com>
Newsgroups comp.compilers
Subject Re: C or Similar Preprocessor for General Use
Date Fri, 17 Jun 2011 12:56:33 -0400
Organization Compilers Central
Lines 21
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <11-06-032@comp.compilers> (permalink)
References <11-06-026@comp.compilers>
NNTP-Posting-Host news.iecc.com
X-Trace gal.iecc.com 1308413531 78440 64.57.183.58 (18 Jun 2011 16:12:11 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Sat, 18 Jun 2011 16:12:11 +0000 (UTC)
Keywords macros
Posted-Date 18 Jun 2011 12:12:10 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:158

Show key headers only | View raw


> C Preprocessor

I worked on this, part time, for some time now.

I finally have something which is usable.

I need it to preprocess Yacc grammars.

Started with the C preprocessor of Plan 9.
http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/cpp/

I have some code cleanup to do, and will publish the result next week.
I would also like to write a man page.

I made some small modifications to the original code.
Replaced the lexer with a flex generated one.
The new lexer is marginally faster and easier to modify.
Replaced the hash function with a faster (real faster) one found on the net.

Works on windows. Compiled with gcc (Cygwin, Mingw)

Back to comp.compilers | Previous | NextPrevious 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