SourceForge Logo

CTool Library


CTool is a C lexer/parser with a symbol table. It includes a lex lexer, and a yacc parser. My original intent was to create a parsing library that could be used as the basis of source-transforming tools. To further this end, CTool can reoutput C source code from the generated abstract syntax tree - so you can easily parse C code, make modifications to the AST, and reprint it.

I've included a call-graph generator as an example program to demonstrate how the library can be used - admittedly, the documentation for the library is currently rather light.

CTool is open-sourced via the Gnu Public License (GPL). With resources kindly supplied by SourceForge.

Useful SourceForge links:

Compiler-Related Links

Go to my personal homepage.

Mail me at: flisakow at