|C compiler front end wanted firstname.lastname@example.org (David Given) (2008-06-15)|
|Re: C compiler front end wanted email@example.com (Richard Pennington) (2008-06-15)|
|Re: C compiler front end wanted firstname.lastname@example.org (David Given) (2008-06-15)|
|Re: C compiler front end wanted email@example.com (Sammy) (2008-06-15)|
|Re: C compiler front end wanted firstname.lastname@example.org (2008-06-16)|
|Re: C compiler front end wanted DrDiettrich1@aol.com (Hans-Peter Diettrich) (2008-06-15)|
|Re: C compiler front end wanted email@example.com (Stefan Monnier) (2008-06-17)|
|[4 later articles]|
|From:||David Given <firstname.lastname@example.org>|
|Date:||Sun, 15 Jun 2008 13:18:59 +0100|
|Keywords:||C, parse, question, comment|
|Posted-Date:||15 Jun 2008 15:13:28 EDT|
I'm working on a C based tool that needs to operate of a full C AST ---
basically, it can be thought of as a code generator for a really twisted
Does anyone know if there are any clean, standalone libraries for
parsing, verifying and then generating full ASTs, from C source code?
So far, my research has shown up a few tools like ctool, which
generates annotated parse trees but don't do full type analysis and
program verification; things like elsa, which is really designed for
C++ and as such is grotesquely overcomplicated for what I want (and
also, I can't make it build); and compiler frontends that are actually
attached to compilers, such as pcc, sdcc, ack, gcc etc, which are
unfortunately so tightly integrated to the compiler backend that
ripping out the existing
backend and replacing it with mine is a huge amount of work.
I'm sure there *must* be something like this out there, somewhere. Can
anyone suggest anything I should have a look at?
(Open source, please!)
[Don't hold your breath waiting for free tools here. Sometimes you only
get what you pay for. -John]
Return to the
Search the comp.compilers archives again.