Abstract: 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.
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; and
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.
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 ‘temp 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 ‘temp map’ with a metadata table based on the datatype of a operand, wherein the ‘temp 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 metadata unit configured to populate captured metadata from a source database in the ‘temp map’.
14) 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.
15) 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.
16) The system as claimed in claim 15, wherein the scope
identification unit is configured to identify a token re-definition
and store scoping of a redefined token in the scope table.
17) The system as claimed in claim 13, 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.
18) 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.
19) 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; and
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.
20) The method as claimed in claim 19, 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.
21) The method as claimed in claim 19, 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.
22) The method as claimed in claim 19, wherein the method comprises identifying the tokens and corresponding rules to be applied on the tokens.
23) The method as claimed in claim 20, wherein the method comprises resolving a top-down usage of the derived literal information.
24) The method as claimed in claim 20, wherein the method comprises generating a vector for the derived literal information, wherein the vector is used to update the abstract syntax tree.
25) The method as claimed in claim 19, wherein the method
comprises determining a datatype of operands in the queries stored
in the nodes of the updated abstract syntax tree, wherein the
datatype of a left token and a right token of the operand is
identified to apply an appropriate rule.
26) The method as claimed in claim 20, wherein the method comprises identifying non-qualified expressions of an updated source code stored in the updated abstract syntax tree.
27) The method as claimed in claim 20, wherein the method comprises generating a ‘temp map’ for storing information about a datatype of expressions of the nested queries stored in the updated abstract syntax tree.
28) The method as claimed in claim 27, wherein the method comprises comparing the ‘temp map’ with a metadata table based on the datatype of an operand, wherein the ‘temp map’ is used to update the abstract syntax tree.
29) The method as claimed in claim 27, wherein the method comprises populating captured metadata from a source database in the ‘temp map’.
30) The method as claimed in claim 19, wherein the method comprises identifying the syntax of the queries stored in the abstract tree by identifying a recursive pattern, wherein the syntax is stored in the form of syntax identifiers in the syntax table.
31) The method as claimed in claim 19, wherein the method comprises
identifying the scope out of the queries stored in the abstract
tree by identifying a recursive pattern, wherein the scope is stored
in the form of scope identifiers in the scope table.
32) The method as claimed in claim 19, wherein the method comprises identifying a token re-definition and storing a scoping of the redefined token in the scope table.
33) The method as claimed in claim 19, 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.
34) The method as claimed in claim 19, wherein the method comprises
traversing the identified pattern, the scope table and the syntax
table to translate an updated abstract syntax tree into a cloud
native code.
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.
| # | Name | Date |
|---|---|---|
| 1 | 202044029174-ABSTRACT [10-02-2022(online)].pdf | 2022-02-10 |
| 1 | 202044029174-US 16830588-DASCODE-1427 [09-07-2020].pdf | 2020-07-09 |
| 2 | 202044029174-STATEMENT OF UNDERTAKING (FORM 3) [09-07-2020(online)].pdf | 2020-07-09 |
| 2 | 202044029174-CLAIMS [10-02-2022(online)].pdf | 2022-02-10 |
| 3 | 202044029174-PROOF OF RIGHT [09-07-2020(online)].pdf | 2020-07-09 |
| 3 | 202044029174-COMPLETE SPECIFICATION [10-02-2022(online)].pdf | 2022-02-10 |
| 4 | 202044029174-POWER OF AUTHORITY [09-07-2020(online)].pdf | 2020-07-09 |
| 4 | 202044029174-FER_SER_REPLY [10-02-2022(online)].pdf | 2022-02-10 |
| 5 | 202044029174-FORM 3 [09-02-2022(online)].pdf | 2022-02-09 |
| 5 | 202044029174-FORM 1 [09-07-2020(online)].pdf | 2020-07-09 |
| 6 | 202044029174-Information under section 8(2) [09-02-2022(online)].pdf | 2022-02-09 |
| 6 | 202044029174-DRAWINGS [09-07-2020(online)].pdf | 2020-07-09 |
| 7 | 202044029174-PETITION UNDER RULE 137 [09-02-2022(online)].pdf | 2022-02-09 |
| 7 | 202044029174-DECLARATION OF INVENTORSHIP (FORM 5) [09-07-2020(online)].pdf | 2020-07-09 |
| 8 | 202044029174-FER.pdf | 2021-11-10 |
| 8 | 202044029174-COMPLETE SPECIFICATION [09-07-2020(online)].pdf | 2020-07-09 |
| 9 | 202044029174-FORM 18 [10-07-2020(online)].pdf | 2020-07-10 |
| 10 | 202044029174-COMPLETE SPECIFICATION [09-07-2020(online)].pdf | 2020-07-09 |
| 10 | 202044029174-FER.pdf | 2021-11-10 |
| 11 | 202044029174-DECLARATION OF INVENTORSHIP (FORM 5) [09-07-2020(online)].pdf | 2020-07-09 |
| 11 | 202044029174-PETITION UNDER RULE 137 [09-02-2022(online)].pdf | 2022-02-09 |
| 12 | 202044029174-DRAWINGS [09-07-2020(online)].pdf | 2020-07-09 |
| 12 | 202044029174-Information under section 8(2) [09-02-2022(online)].pdf | 2022-02-09 |
| 13 | 202044029174-FORM 1 [09-07-2020(online)].pdf | 2020-07-09 |
| 13 | 202044029174-FORM 3 [09-02-2022(online)].pdf | 2022-02-09 |
| 14 | 202044029174-FER_SER_REPLY [10-02-2022(online)].pdf | 2022-02-10 |
| 14 | 202044029174-POWER OF AUTHORITY [09-07-2020(online)].pdf | 2020-07-09 |
| 15 | 202044029174-COMPLETE SPECIFICATION [10-02-2022(online)].pdf | 2022-02-10 |
| 15 | 202044029174-PROOF OF RIGHT [09-07-2020(online)].pdf | 2020-07-09 |
| 16 | 202044029174-CLAIMS [10-02-2022(online)].pdf | 2022-02-10 |
| 16 | 202044029174-STATEMENT OF UNDERTAKING (FORM 3) [09-07-2020(online)].pdf | 2020-07-09 |
| 17 | 202044029174-ABSTRACT [10-02-2022(online)].pdf | 2022-02-10 |
| 17 | 202044029174-US 16830588-DASCODE-1427 [09-07-2020].pdf | 2020-07-09 |
| 18 | 202044029174-US(14)-HearingNotice-(HearingDate-16-06-2025).pdf | 2025-05-29 |
| 19 | 202044029174-FORM-26 [05-06-2025(online)].pdf | 2025-06-05 |
| 20 | 202044029174-Correspondence to notify the Controller [05-06-2025(online)].pdf | 2025-06-05 |
| 21 | 202044029174-FORM 13 [11-06-2025(online)].pdf | 2025-06-11 |
| 22 | 202044029174-AMENDED DOCUMENTS [11-06-2025(online)].pdf | 2025-06-11 |
| 23 | 202044029174-Written submissions and relevant documents [01-07-2025(online)].pdf | 2025-07-01 |
| 24 | 202044029174-FORM-26 [11-09-2025(online)].pdf | 2025-09-11 |
| 25 | 202044029174-PatentCertificate22-10-2025.pdf | 2025-10-22 |
| 26 | 202044029174-IntimationOfGrant22-10-2025.pdf | 2025-10-22 |
| 1 | SearchHistory202044029174E_27-10-2021.pdf |