Patent ID: 10949183

Abstract:
A processor-implemented method for transforming co-routines to equivalent sub-routines is provided. An input is received at a first user device from a user for a first language and a first operating environment. The first language includes the co-routines and is supported in a first hardware environment. The first language is analyzed to transform the co-routines of the first language into the sub-routines of a second language for implementing the co-routines of the first language in a second hardware environment. The second hardware environment supports the sub-routines of the second language in a second operating environment by determining automatic variables for persistent variables and non-persistent variables, transforming the persistent variables and the non-persistent variables into the sub-routines of the second language, determining return statements and yield statements in the co-routines, and translating the co-routines of the first language into the sub-routines of the second language and the second operating environment.