I want to parse C files to extract variables and functions.
I need to change some local variables to global type.
Is there any java library for this purpose?
I want to parse C files to extract variables and functions. I need to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ANTLR is a great tool that has community and APIs for JAVA, C, C#, Python, ActionScript. There are ready to use grammars for many programming languages (C, C#, Java, Perl etc) or custom grammar can be created if needed.
Check grammar list here