×

Method of providing interactive usage descriptions based on source code analysis

  • US 8,051,408 B1
  • Filed: 09/13/2004
  • Issued: 11/01/2011
  • Est. Priority Date: 09/13/2004
  • Status: Active Grant
First Claim
Patent Images

1. In a program development environment executing on a computing device, a method of analyzing source code to provide an interactive usage hint during a user function call, the method comprising:

  • processing in the program development environment a function contained in source code for a program written in a typeless language in which variable types are not required to be explicitly declared, the processing creating a parse tree data structure from the function written in the typeless language;

    identifying in the programming development environment incoming and outgoing arguments in the parse tree data structure;

    receiving in the programming development environment, subsequent to the creating of the parse tree data structure from the function written in the typeless language, a user function call of the function used to create the parse tree data structure, the user function call being at least partially completed;

    analyzing in the programming development environment the function call to identify incoming and outgoing arguments,associating in the programming development environment the identified incoming and outgoing arguments in the function call with the incoming and outgoing arguments identified in the created parse tree data structure, the associating identifying a current location in the parse tree data structure;

    evaluating nodes surrounding the current location in the parse tree data structure to determine at least one of a forward precondition, precondition and post-condition; and

    displaying at least one usage hint interactively to the user based on the evaluating.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×