All the tutorial compilers share a common TemplateManager facade over a StringTemplateGroup set of MIPS-specific templates.
TemplateManagerThe TemplateManager is a thin facade over the StringTemplateGroup. Its primary API is the getTemplate(templateName [attrName, attrValue]*) method, which creates a template by the specified name and sets attribute values using the pairs of attrName, attrValue arguments.
src/templates/MIPS.stg holds parameterized MIPS assembly language templates.
| First Compiler Intro | Front End | Code Generator | Templates |
Wiki: FirstCodeGenerator
Wiki: FirstCompiler
Wiki: FirstFrontEnd
Wiki: SecondCompiler
Wiki: SecondFrontEnd