# US 8,578,323 B2 · Hierarchical program source management

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,323 B2
- Document ID: US8578323B2
- Status: Granted
- Kind: B2
- Application number: 13/108,926
- Filed: 2011-05-16
- Published: 2011-12-01
- Granted: 2013-11-05
- Earliest claimed: 2010-05-31
- Assignees: International Business Machines Corporation
- Applicants: Johnson Y. S. Chiang; Jeffrey C. H. Liu; Joey H. Y. Tseng; Jim C. L. Yu
- Inventors: Johnson Y. S. Chiang; Jeffrey C. H. Liu; Joey H. Y. Tseng; Jim C. L. Yu
- Web page: https://patentgrep.com/patent/US8578323B2

## CPC

- G06F 8/427: {Parsing}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, a system and a computer program product for hierarchical program source management retrieve a main program from a memory and initiate a layer representing a portion of the main program for editing on the display. Program code is edited within the layer in response to detected user programming inputs. A layer abstract syntax tree corresponding to the edited program code is generated. The layer abstract syntax tree is compared with a main program abstract syntax tree and a layer file is generated including the differences between the layer abstract syntax tree and the main program abstract syntax tree.

## Claims

### Claim 1

A method for hierarchical program source management, comprising:
retrieving a main program from a memory;
initiating a layer representing a portion of the main program for editing on a display;
editing program code within the layer in response to detected user programming inputs;
generating a layer abstract syntax tree corresponding to the edited program code;
comparing the layer abstract syntax tree with a main program abstract syntax tree; and
generating a layer file comprising differences between the layer abstract syntax tree and the main program abstract syntax tree.

### Claim 2 (depends on 1)

The method of claim 1, where retrieving the main program from the memory comprises:
retrieving at least one layer file associated with the main program from the memory;
displaying program code corresponding to the at least one layer file and the main program; and
further comprising:
determining whether to hide the program code corresponding to at least one of the at least one layer file in response to a detected user input from a user; and
where initiating the layer representing the portion of the main program for editing on the display comprises initiating the layer based upon the determination of whether to hide the program code corresponding to the at least one of the at least one layer file.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
detecting a selection of at least two layer files by the user; and
merging the at least two layer files to generate a new layer file comprising a new abstract syntax tree corresponding to the at least two layer files.

### Claim 4 (depends on 2)

The method of claim 2, where displaying the program code corresponding to the at least one layer file and the main program comprises:
differentiating between the program code corresponding to the at least one layer file and the program code corresponding to the main program using a recognition marker, where the recognition marker comprises at least one of a background color, a text color, a frame line, a font, and a transparency.

### Claim 5 (depends on 2)

The method of claim 2, where displaying the program code corresponding to the at least one layer file and the main program comprises:
displaying the program code corresponding to the at least one layer file and the main program in a program code displaying region; and
displaying descriptive information corresponding to the at least one layer file in a layer management region.

### Claim 6 (depends on 2)

The method of claim 2, further comprising:
detecting a selection of at least one layer file by the user; and
flattening the at least one layer file and the main program to generate a new main program using the layer abstract syntax tree corresponding to the at least one layer file.

### Claim 7

A computer program product comprising a computer readable storage medium including computer readable program code, where the computer readable program code when executed on a computer causes the computer to:
retrieve a main program from a memory;
initiate a layer representing a portion of the main program for editing on a display;
edit program code within the layer in response to detected user programming inputs;
generate a layer abstract syntax tree corresponding to the edited program code;
compare the layer abstract syntax tree with a main program abstract syntax tree; and
generate a layer file comprising differences between the layer abstract syntax tree and the main program abstract syntax tree.

### Claim 8 (depends on 7)

The computer program product of claim 7, where in causing the computer to retrieve the main program from the memory, the computer readable program code when executed on the computer causes the computer to:
retrieve at least one layer file associated with the main program from the memory;
display program code corresponding to the at least one layer file and the main program; and
where the computer readable program code when executed on the computer further causes the computer to:
determine whether to hide the program code corresponding to at least one of the at least one layer file in response to a detected user input from a user; and
where in causing the computer to initiate the layer representing the portion of the main program for editing on the display, the computer readable program code when executed on the computer causes the computer to initiate the layer based upon the determination of whether to hide the program code corresponding to the at least one of the at least one layer file.

### Claim 9 (depends on 8)

The computer program product of claim 8, where the computer readable program code when executed on the computer further causes the computer to:
detect a selection of at least two layer files by the user; and
merge the at least two layer files to generate a new layer file comprising a new abstract syntax tree corresponding to the at least two layer files.

### Claim 10 (depends on 8)

The computer program product of claim 8, where in causing the computer to display the program code corresponding to the at least one layer file and the main program, the computer readable program code when executed on the computer causes the computer to:
differentiate between the program code corresponding to the at least one layer file and the program code corresponding to the main program using a recognition marker, where the recognition marker comprises at least one of a background color, a text color, a frame line, a font, and a transparency.

### Claim 11 (depends on 8)

The computer program product of claim 8, where in causing the computer to display the program code corresponding to the at least one layer file and the main program, the computer readable program code when executed on the computer causes the computer to:
display the program code corresponding to the at least one layer file and the main program in a program code displaying region; and
display descriptive information corresponding to the at least one layer file in a layer management region.

### Claim 12 (depends on 7)

The computer program product of claim 7, where the computer readable program code when executed on the computer further causes the computer to:
detect a selection of at least one layer file by the user; and
flatten the at least one layer file and the main program to generate a new main program using the layer abstract syntax tree corresponding to the at least one layer file.

### Claim 13

A system for hierarchical program source management, comprising:
a display;
a memory for storing a main program; and
a processor programmed to provide a program development interface via the display and to:
retrieve the main program from the memory;
initiate a layer representing a portion of the main program for editing on the display;
edit program code within the layer in response to detected user programming inputs;
generate a layer abstract syntax tree corresponding to the edited program code;
compare the layer abstract syntax tree with a main program abstract syntax tree; and
generate a layer file comprising differences between the layer abstract syntax tree and the main program abstract syntax tree.

### Claim 14 (depends on 13)

The system of claim 13, where, in being programmed to retrieve the main program from the memory, the processor is programmed to:
retrieve at least one layer file associated with the main program from the memory;
display program code corresponding to the at least one layer file and the main program on the display; and
where the processor is further programmed to:
determine whether to hide the program code corresponding to at least one of the at least one layer file in response to a detected user input from a user; and
where in being programmed to initiate the layer representing the portion of the main program for editing on the display, the processor is programmed to initiate the layer based upon the determination of whether to hide the program code corresponding to the at least one of the at least one layer file.

### Claim 15 (depends on 14)

The system of claim 14, wherein the processor is further programmed to:
detect a selection via the program development interface of at least two layer files by the user; and
merge the at least two layer files to generate a new layer file comprising a new abstract syntax tree corresponding to the at least two layer files.

### Claim 16 (depends on 14)

The system of claim 14, where, in being programmed to display the program code corresponding to the at least one layer file and the main program, the processor is programmed to:
differentiate between the program code corresponding to the at least one layer file and the program code corresponding to the main program using a recognition marker, where the recognition marker comprises at least one of a background color, a text color, a frame line, a font, and a transparency.

### Claim 17 (depends on 14)

The system of claim 14, where, in being programmed to display the program code corresponding to the at least one layer file and the main program, the processor is programmed to:
display the program code corresponding to the at least one layer file and the main program in a program code displaying region on the display; and
display descriptive information corresponding to the at least one layer file in a layer management region on the display.

### Claim 18 (depends on 13)

The system of claim 13, where the processor is further programmed to:
detect a selection of at least one layer file by the user; and
flatten the at least one layer file and the main program to generate a new main program using the layer abstract syntax tree corresponding to the at least one layer file.
