Hello! You need a parser for C language. Certainly, there are many of such, but if you need some customized, you have to create your own. There are several methods: 1. By writing a simple regexp-based parser. I've implemented such one for SQL (project located at: http://code.google.com/p/sql2asciidoc/, source code of core functionality implementation, in Python is here) it parses SQL DDL commands and describes DB structure in AsciiDoc markup language. If parsing typical fragments of C source for documentation purpose is all you need - this approach is appropriate. 2. By using formal grammar of the language in any of parser generator, such as yacc or bison. Practically, it provides possibility of translating source from one programming language to another, but is more complex than simple regexp parsing. Brief documentation about this approach could be found here and here. Formal grammar for ANSI C also exists and could be obtained: (Yacc grammar), (Lex specification). If you decide to work on this, contact me (avsd05 @ gmail com), because I deal with similar problem.