A simple code generation tool