Guidance in writing a compiler
I'm currently writing a small compiler for an assignment. I'm at a point where I'm not sure how to continue. But first, let me share where I am.
The compiler is for Mini Java (BNF) and I am using ANTLR to help me out. (And of course, their website has been down all week.) I've written a working grammar and have created an AST from that grammar.
Next, I need to do semantic analysis. I'm stuck on how to go about doing this. Does ANTLR have built in mechanisms to help me with this? My ultimate goal is to generate bytecode for which I can run on the JVM.
Any pointers would be appreciated.