output spec tree in generated source file