System and a method for moving legacy applications to cloud

US11061652B1 · US · B1

Patent metadata
FieldValue
Publication numberUS-11061652-B1
Application numberUS-202016830588-A
CountryUS
Kind codeB1
Filing dateMar 26, 2020
Priority dateMar 26, 2020
Publication dateJul 13, 2021
Grant dateJul 13, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present invention provides for a system and a method for translating a legacy source code to a cloud native code. The present invention provides for receiving a source code and deriving a plurality of queries from the source code and the queries comprise a plurality of tokens. The present invention provides for constructing an abstract syntax tree in the form of a data structure from the tokens. The present invention provides for traversing the abstract syntax tree, the identified pattern, the scope table and the syntax table for translation of the tokens of the abstract syntax tree into new tokens stored in the form of a cloud native abstract syntax tree. The present invention provides for concatenating the new tokens stored in the cloud native abstract syntax tree to generate a translated cloud native code to be hosted on a cloud platform.

First claim

Opening claim text (preview).

We claim: 1. A system for translating a legacy source code to a cloud native code, wherein the system comprises: a memory storing program instructions; a processor executing program instructions stored in the memory; and a source code translation engine executed by the processor and configured to: receive a source code and derive a plurality of queries from the source code, wherein the queries comprise a plurality of tokens; construct an abstract syntax tree in the form of a data structure from the tokens; identify a syntax of the queries stored in the abstract syntax tree, wherein the syntax is stored in the form of syntax identifiers in a syntax table; identify a scope of the queries stored in the abstract syntax tree, wherein the scope is stored in the form of scope identifiers in a scope table; concatenate the tokens in the queries stored in the abstract syntax tree for identification of a pattern; traverse the abstract syntax tree, the identified pattern, the scope table and the syntax table for translation of the tokens of the abstract syntax tree into new tokens stored in the form of a cloud native abstract syntax tree; concatenate the new tokens stored in the cloud native abstract syntax tree to generate a translated cloud native code to be hosted on a cloud platform; wherein the source code translation engine comprises a metadata unit configured to populate captured metadata from a source database in the temporary map; and wherein the source code translation engine comprises a pattern directed translation unit configured to concatenate the tokens in the queries for identification of a pattern and generate a concatenated token string, wherein the pattern is identified by matching the concatenated token string with one or more pre-loaded patterns. 2. The system as claimed in claim 1 , wherein the system comprises a derived column identification unit configured to derive a literal information relating to the queries or nested queries stored in the abstract syntax tree and update the abstract syntax tree based on the literal information. 3. The system as claimed in claim 1 , wherein the system comprises a correlation and recognition unit configured to determine a datatype of operands of the tokens in the abstract syntax tree and update the abstract syntax tree with the metadata extracted from a source database based on the determined operand. 4. The system as claimed in claim 1 , wherein the source code translation engine comprises a lexical analyser unit configured to receive a source code and derive the plurality of queries from the source. 5. The system as claimed in claim 1 , wherein the source code translation engine comprises a parser unit configured to construct the abstract syntax tree from the queries in the form of the data structure. 6. The system as claimed in claim 1 , wherein the source code translation engine comprises a grammar unit configured to identify the tokens and corresponding rules to be applied on the tokens and the operands associated with the tokens. 7. The system as claimed in claim 2 , wherein the derived column identification unit is configured to resolve top-down usage of the derived literal information. 8. The system as claimed in claim 2 , wherein the derived column identification engine is configured to generate a vector for the derived literal information, wherein the vector is used to update the abstract syntax tree. 9. The system as claimed in claim 1 , wherein the datatype of a left token and right token of the operand is identified to apply an appropriate rule. 10. The system as claimed in claim 2 , wherein system comprises a correlation and the recognition unit configured to identify non-qualified expression of an updated source code stored in the updated abstract syntax tree. 11. The system as claimed in claim 2 , wherein the system comprises a correlation and recognition unit configured to generate a temporary map for storing information associated with a datatype of expressions of nested queries stored in the updated abstract syntax tree. 12. The system as claimed in claim 11 , wherein the correlation and recognition unit is configured to compare the temporary map with a metadata table based on the datatype of a operand, wherein the temporary map is used to update the abstract syntax tree. 13. The system as claimed in claim 1 , wherein the source code translation engine comprises a syntax identification unit to identify the syntax of the queries stored in the abstract tree by identifying a recursive pattern. 14. The system as claimed in claim 1 , wherein the source code translation engine comprises a scope identification unit configured to identify the scope of the queries stored in the abstract tree by identifying a recursive pattern. 15. The system as claimed in claim 14 , wherein the scope identification unit is configured to identify a token re-definition and store scoping of a redefined token in the scope table. 16. The system as claimed in claim 2 , wherein the source code translation engine comprises a pattern directed translation unit configured to traverse the identified pattern, the scope table and the syntax table to translate the updated abstract syntax tree into the cloud native code. 17. A method for translating a legacy source code to a cloud native code executed by a processor comprising program instructions stored in a memory, the method comprising: receiving a source code and deriving a plurality of queries from the source code, wherein the queries comprise a plurality of tokens; constructing an abstract syntax tree in the form of a data structure from the tokens; identifying a syntax of the queries stored in the abstract syntax tree, wherein the syntax is stored in the form of syntax identifiers in a syntax table; identifying a scope of the queries stored in the abstract syntax tree, wherein the scope is stored in the form of scope identifiers in a scope table; concatenating the tokens in the queries stored in the abstract syntax tree for identification of a pattern; traversing the abstract syntax tree, the identified pattern, the scope table and the syntax table for translation of the tokens of the abstract syntax tree into new tokens stored in the form of a cloud native abstract syntax tree; concatenating the new tokens stored in the cloud native abstract syntax tree to generate a translated cloud native code to be hosted on a cloud platform; wherein the method comprises generating a temporary map for storing information about a datatype of expressions of the nested queries stored in the updated abstract syntax tree; wherein the method comprises populating captured metadata from a source database in the temporary map; and wherein the method comprises concatenating the tokens in the queries for identification of a pattern and generating a concatenated token string, wherein the pattern is identified by matching the concatenated token string with one or more pre-loaded patterns. 18. The method as claimed in claim 17 , wherein the method further comprises deriving a literal information relating to the queries or nested queries stored in the abstract syntax tree and updating the abstract tree based on the literal information. 19. The method as claimed in claim 17 , wherein the method comprises determining a datatype of operands of the tokens in the abstract syntax tree and updating the abstract syntax tree with the metadata extracted from a source database based on the determined operand. 20. The method as claimed in claim 17 , wherein

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11061652B1 cover?
The present invention provides for a system and a method for translating a legacy source code to a cloud native code. The present invention provides for receiving a source code and deriving a plurality of queries from the source code and the queries comprise a plurality of tokens. The present invention provides for constructing an abstract syntax tree in the form of a data structure from the to…
Who is the assignee on this patent?
Cognizant Tech Solutions India Pvt Ltd
What technology area does this patent fall under?
Primary CPC classification G06F8/425. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jul 13 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).