Related articles |
---|
Looking for simple C Preprocessor source jmensch@home.com (Julian Mensch) (2002-06-20) |
Re: Looking for simple C Preprocessor source Marko.Makela@HUT.FI (Marko =?ISO-8859-1?Q?M=E4kel=E4?=) (2002-06-28) |
Re: Looking for simple C Preprocessor source remove@matematik.su.se (Hans Aberg) (2002-06-28) |
Re: Looking for simple C Preprocessor source nmh@t3x.org (Nils M Holm) (2002-06-28) |
Re: Looking for simple C Preprocessor source kratkin@yahoo.com (Niktar Lirik) (2002-06-28) |
Re: Looking for simple C Preprocessor source parsersinc@yahoo.com (SLK Parsers) (2002-07-04) |
Re: Looking for simple C Preprocessor source dickey@Radix.Net (Thomas Dickey) (2002-07-15) |
Looking for simple C Preprocessor source Daniel.Dallmann@tesat.de (Dallmann Daniel \(TE/SM2\)) (2007-03-08) |
From: | "Hans Aberg" <remove@matematik.su.se> |
Newsgroups: | comp.compilers |
Date: | 28 Jun 2002 18:03:08 -0400 |
Organization: | Mathematics |
References: | 02-06-066 |
Keywords: | C |
Posted-Date: | 28 Jun 2002 18:03:08 EDT |
"Julian Mensch" <jmensch@home.com> wrote:
> Hi. I'm writing a computer game that has it's own scripting and
>level definition language,
...
> Now, because
>the language requires so many constants shared with the main game in
>C++, I run it through the C preprocessor to allow me to use include
>files and defines before using my own level compiler on it.
...
>[If you just want something for your own use, a simple preprocessor with
>include and define is a few dozen lines of perl. -John]
Another suggestion that comes to my mind is the M4 macro program, see
<http://gnu.org>. -- In order to simplify multiple language output, the
parser generator Bison is now (in latest beta) feeeding its output through
M4.
Hans Aberg * Anti-spam: remove "remove." from email address.
* Email: Hans Aberg <remove.haberg@member.ams.org>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>
Return to the
comp.compilers page.
Search the
comp.compilers archives again.