[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lpeg C preprocessor
- From: Joshua Jensen <jjensen@...>
- Date: Fri, 21 Sep 2007 21:35:29 -0600
David Manura wrote:
The question of 'why' is easily answered. There is a need to parse
through files wrapped with C preprocessor commands (#ifdef, #if, #else,
#endif, and #define). The need for a C preprocessor can't be changed;
the file format is a worldwide standard.
Joshua Jensen wrote:
I was trying to use lpeg to put together a C preprocessor
Though one could, I think the larger question is why.
I appreciate your concern that I might be going the wrong direction and
your suggestion of the Lua-based preprocessor. In this case, a C
preprocessor is necessary, and given lpeg is already being used to parse
through the C-like language, it seems a C preprocessor in lpeg would be