×

Method of providing interactive usage descriptions based on source code analysis

  • US 9,134,967 B1
  • Filed: 10/27/2011
  • Issued: 09/15/2015
  • Est. Priority Date: 09/13/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • creating, by a processor, a parse tree data structure for a function written in a computer programming language,the function specifying;

    one or more input arguments,one or more output arguments, andone or more operations,the parse tree data structure including nodes, at least some of the nodes of the parse tree data structure corresponding to;

    the one or more input arguments,the one or more output arguments, andthe one or more operations of the function,where the creating the parse tree data structure includes assigning one or more conditions to a first node of the parse tree data structure;

    storing the parse tree data structure in a memory coupled to the processor;

    identifying, within a program being created, a call to the function;

    mapping portions of the call to the function to one or more of the nodes of the parse tree data structure;

    analyzing, by the processor, the parse tree data structure with the portions of the call to the function mapped to the one or more of the nodes of the parse tree data structure, where the analyzing includesperforming a tree walk of the parse tree data structure, andutilizing information from the function call of the program being created to evaluate the one or more conditions assigned to the first node of the parse tree data structure;

    producing, by the processor, based on the analyzing;

    a usage hint for completing the call to the function, ora validation message of the call to the function; and

    presenting, by the processor, the usage hint or the validation message.

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