发明名称 Transformation of computer programs and eliminating errors
摘要 A method and system for transforming a first computer program having program statements to a second computer program. A parsed first computer program is translated to the second computer program. The first computer program includes a first program statement that includes a first error. The translating includes: (i) identifying a second program statement in the parsed first computer program that includes a second error and has thrown a translation exception with respect to the second error, (ii) rolling back the translating to a predefined check point prior to the second program statement in the parsed first computer program such that the predefined check point is associated with a statement in the parsed first computer program that was successfully translated, and (iii) generating an executable equivalent translation for the second statement. After the translating, a mapping of one or more statements is generated.
申请公布号 US9122540(B2) 申请公布日期 2015.09.01
申请号 US201414327735 申请日期 2014.07.10
申请人 International Business Machines Corporation 发明人 Dhoolia Pankaj;Ghosh Anup K.;Ghosal Sugata;Lahiri Asidhara;Nanda Mangala G.;Nandivada Venkata Krishna;Nandy Anjan;Saha Diptikalyan
分类号 G06F9/45 主分类号 G06F9/45
代理机构 Schmeiser, Olsen & Watts, LLP 代理人 Schmeiser, Olsen & Watts, LLP ;Pivnichny John
主权项 1. A method for transforming a first computer program having a plurality of program statements to a second computer program, said method comprising: translating, by one or more processors, a parsed first computer program to the second computer program, wherein the first computer program was parsed without interruption, wherein the first computer program comprises a first program statement that includes a first error and has thrown a parsing exception with respect to the first error, wherein said translating comprises: (i) identifying a second program statement in the parsed first computer program that includes a second error and has thrown a translation exception with respect to the second error prior to said translating, (ii) rolling back said translating to a predefined check point prior to the second program statement in the parsed first computer program, wherein the predefined check point is associated with a statement in the parsed first computer program that was successfully translated during said translating, and (iii) generating an executable equivalent translation for the second statement that does not throw a translation exception; and after said translating, generating, by the one or more processors, a mapping of one or more statements in the second computer program to one or more statements in the first computer program.
地址 Armonk NY US
您可能感兴趣的专利