Monday, May 28, 2007

String Template for code generation

I have been a fan of the ANTLR parser generator by Terrance Parr for some years and used it in some of the tools I have developed to make life a little easier.
Recently on a project I was looking at the output stage of a Java code generator for FitNesse fixtures and thought to compare the way the code was being produced (inline strings and print statements) to ANTLR and discovered that version 3 of ANTLR uses the StringTemplate library. Further digging revealed a really cool library for text file generation based on a domain model.
Really cool

1 comment:

Anonymous said...

Good for people to know.