IP Library Patent Application 12337582
Patent Application
App. No. 12/337,582

Path Navigation In Abstract Syntax Trees

Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US None
App. No.
12/337,582
Abstract

The subject matter disclosed herein provides methods and apparatus, including computer program products, for navigating abstract syntax trees. In one aspect there is provided a method. The method may include receiving a plurality of nodes, the nodes configured as an abstract syntax tree representing program code. The method may also include identifying at least one node from the plurality of nodes by navigating the plurality of nodes using a path expression. Related systems, apparatus, methods, and/or articles are also described.

Claims (28)

1 . A computer-readable medium containing instructions to configure a processor to perform a method, the method comprising:

receiving a plurality of nodes, the nodes configured as an abstract syntax tree representing program code; and

identifying at least one node from the plurality of nodes by navigating the plurality of nodes using a path expression.

2 . The computer-readable medium of claim 1 , wherein the path expression includes a limited step.

3 . The computer-readable medium of claim 2 , wherein the limited step yields one or more nodes between a node bound to a variable and a context node.

4 . The computer-readable medium of claim 1 , wherein the path expression includes a top limited step.

5 . The computer-readable medium of claim 4 , wherein the top limited step limits a node search on axes of the abstract syntax tree, such that an unnested node is returned.

6 . The computer-readable medium of claim 1 , wherein the path expression includes a bottom limited step.

7 . The computer-readable medium of claim 6 , wherein the bottom limited step yields conditional statements below a context node that does not contain other conditional statements.

8 . A system comprising:

a processor; and

a memory, the processor and memory configured to perform a method, the method comprising:

receiving a plurality of nodes, the nodes configured as an abstract syntax tree representing program code; and

identifying at least one node from the plurality of nodes by navigating the plurality of nodes using a path expression.

9 . The system of claim 8 , wherein the path expression includes a limited step.

10 . The system of claim 9 , wherein the limited step yields one or more nodes between a node bound to a variable and a context node.

11 . The system of claim 8 , wherein the path expression includes a top limited step.

12 . The system of claim 11 , wherein the top limited step limits a node search on axes of the abstract syntax tree, such that an unnested node is returned.

13 . The system of claim 8 , wherein the path expression includes a bottom limited step.

14 . The system of claim 13 , wherein the bottom limited step yields conditional statements below a context node that does not contain other conditional statements.

15 . A method for path navigation, the method being performed by execution of a computer readable program code by a processor of a computer, the method comprising:

receiving a plurality of nodes, the nodes configured as an abstract syntax tree representing program code; and

identifying at least one node from the plurality of nodes by navigating the plurality of nodes using a path expression.

16 . The method of claim 15 , wherein the path expression includes a limited step.

17 . The method of claim 16 , wherein the limited step yields one or more nodes between a node bound to a variable and a context node.

18 . The method of claim 15 , wherein the path expression includes a top limited step.

19 . The method of claim 18 , wherein the top limited step limits a node search on axes of the abstract syntax tree, such that an unnested node is returned.

20 . The method of claim 15 , wherein the path expression includes a bottom limited step, wherein the bottom limited step yields conditional statements below a context node that does not contain other conditional statements.

Assignments (2)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0223 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 19, 2008
From: BOHLMANN, KARSTEN; BERTHELOT, GILLES; WEDLER, CHRISTOPH; ZHOU, XIWEI
To: SAP AG
Reel/Frame 022017/0342 →