1. A method for a code generation system, said method comprising: parsing, by a processor of a computer system, input code into data items of program code and data items of at least one code generating instruction, said input code comprising the program code and a set of comments in the programming language of the program code such that the set of comments includes the at least one code generating instruction; said processor generating a model comprising the parsed data items of the program code such that the generated model represents all parameters in the program code; said processor generating a template as a result of applying said at least one code generation instruction to the parsed data items of the program code such that the template comprises a respective variable that holds a respective instance of the generated model for each parameter in the program code; said processor obtaining a code generator as a result of running a template engine of the code generation system using the generated template, wherein said code generator comprises at least one definition of a respective string and at least one procedure; said processor creating an output code of the code generation system as a result of running the obtained code generator using the at least one procedure, the at least one definition of the respective string, and a respective instance of the generated model, wherein the output code comprises parameters in the generated model; and said processor forwarding the created output code to at least one output device.
1. A method for a code generation system, said method comprising: parsing, by a processor of a computer system, input code into data items of program code and data items of at least one code generating instruction, said input code comprising the program code and a set of comments in the programming language of the program code such that the set of comments includes the at least one code generating instruction; said processor generating a model comprising the parsed data items of the program code such that the generated model represents all parameters in the program code; said processor generating a template as a result of applying said at least one code generation instruction to the parsed data items of the program code such that the template comprises a respective variable that holds a respective instance of the generated model for each parameter in the program code; said processor obtaining a code generator as a result of running a template engine of the code generation system using the generated template, wherein said code generator comprises at least one definition of a respective string and at least one procedure; said processor creating an output code of the code generation system as a result of running the obtained code generator using the at least one procedure, the at least one definition of the respective string, and a respective instance of the generated model, wherein the output code comprises parameters in the generated model; and said processor forwarding the created output code to at least one output device. 3. The method of claim 1 , wherein the programming language of the program code accommodates comments in the syntax of the programming language such that said at least code generating instruction is embedded in said comments of the programming language.