发明名称 Editor with commands for automatically disabling and enabling program code portions
摘要 A method (300) of editing program code is proposed. The program code consists of main instructions written in a high-level language. Typically, the program code further includes one or more sets of service instructions, which are not directly connected to a desired algorithm (such as tracing instructions for debugging purposes, performance measuring instructions, and the like). In the solution of the invention, each set of service instructions is enclosed (321-322) between a pair of predefined comments defining a starting tag and an ending tag. An editor of the program code is provided with commands for automatically disabling (341) the service instructions (converting them into corresponding comments); at the same time, the disabled instructions are condensed (340) on the monitor. Additional commands are available for automatically enabling (368) and restoring (367) the service instructions.
申请公布号 US8898631(B2) 申请公布日期 2014.11.25
申请号 US201213567458 申请日期 2012.08.06
申请人 International Business Machines Corporation 发明人 Vampo Cosimo;Castino Raimondo;Costantini Eliseba
分类号 G06F9/44;G06F11/36 主分类号 G06F9/44
代理机构 代理人 Walder, Jr. Stephen J.;LaBaw Jeffrey S.
主权项 1. A method of editing program code on a data processing system, the program code being suitable for subsequent processing, wherein the method includes the steps of: defining at least two portions of the program code; selecting a first defined portion of the at least two portions of the program code; compressing a representation of the first defined portion in a visual representation of the program code such that content of the first defined portion is not visible in the visual representation of the program code, wherein a second defined portion of the at least two portions of the program code remains visible in the visual representation of the program code; and automatically disabling the first defined portion, the disabled first defined portion being excluded from the subsequent processing, wherein the second defined portion is subjected to subsequent processing, wherein compressing the representation of the first defined portion in the visual representation of the program code comprises: replacing a visual representation of the content of the first defined portion with an identifier of the first defined portion, the identifier indicating a position in the program code where the first defined portion was present but not containing contents of the first defined portion; and inserting, into the visual representation of the program code, a compression identifier in association with the identifier of the first defined portion, the compression identifier indicating that the first defined portion has been compressed.
地址 Armonk NY US