I’m looking for an C source code parser that can create a comprehensive AST from it.
Preferably a Java library (I’d rather not have to use Python here -> http://code.google.com/p/pycparser/)
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.
It may well be easiest for you to use ANTLR and get it to generate an AST based on an existing ANTLR grammar, e.g. the source.
ANTLR has a Java API here: http://www.antlr.org/api/Java/index.html