I need to finish my small-c to p-code compiler in a couple of weeks but am really having trouble understanding how to make my symbol table and subsequent code generation phase. Where can I start, I've seen a couple examples but I'm not getting the whole concept too well.
As you can see in the attached grammar, many re-writting rules are being used and the grammar is actually quite long, unfortunatelly took quite a long time to derive from the YACC grammar ommiting the parts we wouldn't need but at this point I don't know if later this will affect us when trying to come up with code-gen.
Any advices/hints are welcome, thanks.