Claims Analysis
Total Claims: 6
Claim 1
Independent Claim
132 words
A method for constructing a parse tree, the parse tree having a plurality of nodes represented by parse tree node records, each record being associated with a source code segment having a start location and an end location, the method comprising: storing a first value in a child pointer field of a record, the first value being selected from a group of nil and a child node address; storing a second value in a sibling pointer field of the record, the second value being selected from a group of nil and a sibling node address; providing a variant field for the record; selecting a third value from a group consisting of a parent node address and an end position; and storing the third value selected in the variant field of the record.
Claim 2
Independent Claim
132 words
A method for constructing a parse tree, the parse tree having a plurality of nodes represented by parse tree node records, each record being associated with a source code segment having a start location and an end location, the method comprising: storing a first value in a child pointer field of a record, the first value being selected from a group of nil and a child node address; storing a second value in a sibling pointer field of the record, the second value being selected from a group of nil and a sibling node address; providing a variant field for the record; selecting a third value from a group consisting of a parent node address and an end position; and storing the third value selected in the variant field of the record.
Claim 3
Dependent Claim
41 words
The method of claim 1 wherein selecting a third value includes: calculating an end position when a node represented by the record has a sibling; and calculating a parent node address when the node represented by the record lacks a sibling.
Claim 4
Independent Claim
104 words
A method for identifying a source code segment associated with a first parse tree node record, wherein a start position of the source code segment is determined based on a field of a second node record, the method comprising: determining the start position based on a variant field of the first node record and a variant field of the second node record wherein the variant fields of the first and second node records have contents selected from a group consisting of a parent node address and an end position; and determining an end position based on the variant field of the first node record.
Claim 5
Independent Claim
104 words
A method for identifying a source code segment associated with a first parse tree node record, wherein a start position of the source code segment is determined based on a field of a second node record, the method comprising: determining the start position based on a variant field of the first node record and a variant field of the second node record wherein the variant fields of the first and second node records have contents selected from a group consisting of a parent node address and an end position; and determining an end position based on the variant field of the first node record.
Claim 6
Dependent Claim
58 words
The method of claim 3 wherein determining an end position includes: determining the end position to equal the value of the variant field when the first node record fails to represent a last child node; determining the end position to equal the end position of a parent node when the first node record represents a last child node.