I'm working on a project where I want to give feedback on Java code written by complete beginners. In other words, I need to be able to tell if the code is following conventions, not just if it's valid Java code.
I have looked into modules like pyparsing, PLY and pyPEG, and it looks like they would do the trick as far as parsing at least a large subset of Java - which would be fine. However I'm not very experienced with parsing, so I'm not sure if it's possible to use these tools to check against code conventions as well?