[antlr-interest] standard C parser for C++

John D. Mitchell johnm-antlr at non.net
Mon Apr 4 09:04:49 PDT 2005


>>>>> "Jim" == Jim Crafton <jim.crafton at gmail.com> writes:
[...]

> It will crap out with an error on the LPAREN. Has anyone else had any
> success? Does it work well in it's native Java form?

Yes, the Java version has been used on some real projects.


> I am asking because I would like to experiment with the following idea:

> I would like to make a pre-proccessor, that takes a file written in a
> strict C super set, and that adds the following features: classes bounds
> checking on arrays a UTF 16 string type with length exceptions There's
> more to it than this, but this is the basic idea.

> The processor would then spit out standard C, which could then be fed to
> the C compiler of your choice.

Yes, we've done that sort of thing for a couple of big clients.

Take care,
	John


More information about the antlr-interest mailing list