Re: C or Similar Preprocessor for General Use

"Akakima" <akakima33@gmail.com>
Fri, 17 Jun 2011 12:56:33 -0400

          From comp.compilers

Related articles
C or Similar Preprocessor for General Use genew@ocis.net (Gene Wirchenko) (2011-06-16)
Re: C or Similar Preprocessor for General Use gene.ressler@gmail.com (Gene) (2011-06-16)
Re: C or Similar Preprocessor for General Use cr88192@hotmail.com (BGB) (2011-06-16)
C or Similar Preprocessor for General Use rayroth@pacbell.net (ray roth) (2011-06-17)
Re: C or Similar Preprocessor for General Use comp.compilers@inglorion.net (Robbert Haarman) (2011-06-17)
Re: C or Similar Preprocessor for General Use usenet@rwaltman.com (Roberto Waltman) (2011-06-17)
Re: C or Similar Preprocessor for General Use akakima33@gmail.com (Akakima) (2011-06-17)
| List of all articles for this month |

From: "Akakima" <akakima33@gmail.com>
Newsgroups: comp.compilers
Date: Fri, 17 Jun 2011 12:56:33 -0400
Organization: Compilers Central
References: 11-06-026
Keywords: macros
Posted-Date: 18 Jun 2011 12:12:10 EDT

> 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)



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.