Changing acorn to parse c or java programs


I’ve written a program that uses acorn for analyzing set of java script sources.
I want to do that analysis for C and java sources too.
I think with some minor changes in acorn, I can do that. Because I want just special phrases like variable declaration, function declaration, assignment and function call.
Any suggestion would be a big favor for me.
Thank you in advance,


Writing a parser for a different language is definitely going to take a lot more work than some minor changes, I’m afraid.