Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C Parser in C# or generally .Net [closed]

Tags:

c

c#

parsing

For my diploma thesis I need to implement certain static C code analysis and I am desperately looking for a framework/library that would allow me to parse C source code, split it up into single functions, for every function determine what variables are changed in the function body and derive certain annotations for the code automatically. Is there any good framework written in C# or generally as .Net class for this purpose?

like image 810
Alexander Galkin Avatar asked Dec 13 '22 13:12

Alexander Galkin


1 Answers

What about googling for "C Parser written in C#"?

I got this as first link: http://code.google.com/p/cpp-ripper/

Also, I think the C grammar can be found in quite a lot of places, so you might just want to open up your .NET variant of lex/yacc and go from there?

like image 164
Daren Thomas Avatar answered Dec 15 '22 04:12

Daren Thomas