On Mon, Jul 25, 2005 at 10:59:24AM +0700, Antero Vipunen wrote:
Well, even simple C-grammar parser would be enough for my needs.(I
mean it should parse C files, and be written in lua)
Note that the C grammar is a bit tricky because of the preprocessor.
Consider what happens if the code has macros, stringization, token
pasting, or #if statements with mathematical expressions. If you
implement your own preprocessor, you also have the issue that
conditional code might expect compiler-specific predefined values.