1. A method, comprising: receiving a state chart generated via a technical computing environment, the state chart including at least one function block that includes a function, the function including one or more function inputs and one or more function outputs, the state chart including at least one state block that includes a function call to the function of the at least one function block, the function call including one or more call inputs and one or more call outputs, and the receiving the state chart being performed by a device; initiating execution of the state chart, the initiating the execution of the state chart being performed by the device; parsing, during the execution of the state chart, the function into the one or more function inputs and the one or more function outputs, the parsing the function being performed by the device; parsing, during the execution of the state chart, the function call into the one or more call inputs and the one or more call outputs, the parsing the function call being performed by the device; processing, during the execution of the state chart, the one or more function inputs and the one or more function outputs with a graphical engine of the technical computing environment to generate function-related code, the processing the one or more function inputs and the one or more function outputs being performed by the device; processing, during the execution of the state chart, the one or more call inputs and the one or more call outputs with a textual engine of the technical computing environment to generate function call-related code, the processing the one or more call inputs and the one or more call outputs being performed by the device; and providing the function-related code and the function call-related code in generated code, the providing being performed by the device.