Parse the source C file and get a list of functions

I want to write a C # program that uses a library to parse C source files and provides me with a data structure that contains all the functions and related parameters.

I do not need to know what is actually inside the function or anything else for that matter.

What would be a good library for this?

+5
source share
1 answer

ANTLR can do what you want. It has a C preprocessor and ANSI C grammar.

( http://www.antlr.org/grammar/list )

+7
source

All Articles