I'm currently creating a grading utility for my university that compiles, lints, run professor-defined tests, etc. In the process, I'm generating a parse tree of the student's source code so I can do things like check imports, check file structure, check for a minimum number of methods, etc. When generating the parse tree, the file must be able to compile (run time errors are a non-factor). The only problem is, not all student submissions actually compile—this is problematic.
Does anyone know of a program that fixes basic Java compilation errors (e.g. missing semi-colons, curly braces, etc.) or of a way that I could go about creating such an application?
I've done some research and the best tool I've found is walkmod, but this merely corrects poorly formatted code rather than actually correcting the issues.