Leo
Leo

Reputation: 510

Parse a C source file and get a list of functions

I want to write a program in C# that uses a library to parse C source files, and provides me with a data structure containing all the functions and parameters associated found in it.

I don't need to know what is actually inside the function or anything else for that matter.

What would be a good library to do that?

Upvotes: 5

Views: 1135

Answers (1)

user195488
user195488

Reputation:

ANTLR can do what you'd like. It has a C preprocessor and ANSI C grammar.

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

Upvotes: 7

Related Questions