×

Automatic source code generation

  • US 9,940,104 B2
  • Filed: 06/11/2013
  • Issued: 04/10/2018
  • Est. Priority Date: 06/11/2013
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method, the method comprising:

  • configuring a profile to generate one or more source code statements automatically, the profile including one or more variable code elements, one or more methods, and at least one rule, a variable code element comprising an element of a source code statement that takes on different values in different contexts, individual methods of the one or more methods including programmable instructions that generate the one or more source code statements using values of the variable code elements, the one or more source code statements based on corresponding source code statements from an existing code base of a software application, the at least one rule is used to match syntax of a text string to determine one or more variable code elements, the at least one rule includes one or more regular expressions and/or one or more logical statements, the one or more regular expressions used to match syntax of the text string to a rule, the one or more logical statements used to invoke one or more of the methods to generate the one or more source code statements;

    searching for a rule that closely matches the syntax of the text string;

    using a regular expression associated with the closely matching rule to obtain the one or more variable code elements;

    obtaining values for the variable code elements;

    applying the values of the variable code elements in the logical statements to invokemethods to generate the one or more source code statements.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×