I need to write a compiler. It\'s homework at the univ. The teacher told us that we can use any API we want to do the parsing of the code, as long as it is a good one. That way
Have a look at JavaCC, a language parser for Java. It's very easy to use and get the hang of