Terence Parr, the inventer of ANTLR, gave his students a lab exercise: "They will take the python BNF specs from the distribution and the website (parser and lexer) and build a translator that generates an equivalent ANTLR spec." See "http://groups.yahoo.com/group/antlr-interest/message/10903".