1. A method comprising: generating a modular representation of a process using modules and variables, each module representing a portion of the process, each variable representing an adjustable parameter of the process; setting one or more variables to specific values; and generating code to implement the process according to the modular representation, the code being generated without implementing portions of the process that are not executable when the one or more variables are set to the specific values.