Rather than reimplement an appropriate symbol table just for this example, I’ve copied the symbol table source code from Chapter 6 of Language Implementation Patterns [Par09]. I encourage you to look through the source for BaseScope, GlobalScope, LocalScope, Symbol, FunctionSymbol, and VariableSymbol to get a feel for the implementation. Together, those classes embody the symbol table, and we’ll assume that they just work. W...
This project requires these files for it to be completed. They are not available here and must be acquired via the referenced book resources.
Share this highlighthttp://www.safaribooksonline.com/a/the-definitive-antlr/574197/