Patent ID: 8677332

Claim:
A computer-implemented method for compiling one or more code blocks written in a programming language, the method comprising: providing a display associated with an application, wherein the display comprises a plurality of graphical objects; determining that each of the plurality of graphical objects is associated with a child code block in a one-to-one association between the graphical objects and the child code blocks, wherein each child code block is written in a programming language; transforming the child code blocks associated with the plurality of graphical objects into a single parent code block, wherein the parent code block, upon compiling, is configured to be reused across execution contexts and to allow injection of a global scope, wherein the parent code block, upon a specific execution, comprises an execution context for a specified child code block, and wherein the parent code block is configured to receive an indication of the specified child code block for initiating execution of the parent code block; and compiling the parent code block.