Reputation: 510
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
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