Patent ID: 8972950
Filing Date: 2015-03-03
Classification: G06F

Abstract:
1. A method for automatically translating input code to a computer executable imperative output representation, the method comprising: providing an input source program expressed in a programming language that provides for specification of event-sequenced procedures, wherein said input source program includes one or more event-sequenced procedures specified in accordance with said programming language, and said one or more event-sequenced procedures have dependence on one or more external events; automatically translating, using one or more computer processors, said input source program to said computer executable imperative output representation, including: providing said computer executable imperative output representation as an output; wherein: said computer executable imperative output representation includes an imperative representation of said one or more event-sequenced procedures with the notification and callback code for the one or more inputs; the notification and callback code for the one or more inputs is realized as a listener pattern having one or more callback interfaces associated with one or more object types; the notification and callback code for the one or more inputs comprises callback subroutines for inputs to the event-sequenced procedures; each of the callback subroutines comprises a switch statement having one or more case blocks; control flow is provided by setting case variables of the switch statements; and the control flow includes one or more constructs selected from the group consisting of: conditional wait, return, goto, statement label, and throwing an exception.