Currently the project I\'m working with does not have completely fixed models (due to an external influence) and hence I\'d like some flexibility in writing them. Currently they
This can be easily done with ANTLR. If the output is similar enough you can simply use the text templating mechanism—otherwise it can generate an abstract syntax tree for you to traverse.