Ideas for scoring coding assignments

Hey guys , I am searching for ways to use NLP to score coding/programming assignments like what a teacher will do in an exam/test. what ideas come to mind?
any papers or similar problem solutions will be much appreciated !