Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This example is a toy implementation of the StringTemplate template engine. It uses a bytecode interpreter and disassembler pulled directly from:

Image Added

Discussion

I'm in the process of rebuilding ST from the ground up. The previous version works well, but it's hard for me to maintain because it uses a tree-based interpreter. Further, it uses v2 ANTLR not v3. In order to remove the dependencies in ST and in v3 itself on ANTLR v2, I'm rebuilding both (though only the front end of ANTLR). The functionality will be effectively the same, with some slight differences in syntax. Lots of little things cleaned up and so on.

...