IP Library Granted Patent US 11,829,761
Granted Patent B2
US 11,829,761 · App. 18/150,074 · Granted Nov 28, 2023

Systems and methods for handling macro compatibility for documents at a storage system

Inventors: Paneendra Anantha Rao Bapu (Bangalore, IN); Sowmith Manepalli (Hyderabad, IN); Sourav Poddar (Kolkata, IN); Abhay Garg (New Delhi, IN); Alexandre Ginet (Brooklyn, NY); Arijit De (Bangalore, IN)
Assignee: Google LLC
G06F9/3017G06F8/31G06F8/42G06F8/437G06F8/51G06F8/76G06F9/3836H04L67/1097
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,829,761
App. No.
18/150,074
Granted
Nov 28, 2023
Kind
B2
Abstract

A document to be stored on a network-based storage system is identified. The document includes one or more macros in a first programming language. An object referenced by a function defined by a macro of the one or more macros is identified. The function is converted into one or more sets of operations represented in a second programming language. Each set of operations corresponds to one of one or more candidate object types associated with the object. At least one of the one or more sets of operations is to be performed with respect to the object responsive to indication of a corresponding candidate object type for the object during execution of the macro. The document including the one or more sets of operations represented in the second programming language is stored on the network-based storage system.

Claims (47)

1. A method comprising:

identifying a document to be stored on a network-based storage system, wherein the document comprises one or more macros in a first programming language;

identifying an object referenced by a function defined by a macro of the one or more macros of the document;

converting the function into one or more sets of operations represented in a second programming language, wherein each set of operations corresponds to one of one or more candidate object types associated with the object, and wherein at least one of the one or more sets of operations is to be performed with respect to the object responsive to receiving an indication of a corresponding candidate object type for the object during execution of the macro; and

storing, on the network-based storage system, the document comprising the one or more sets of operations represented in the second programming language.

2. The method of claim 1 , wherein the first programming language is not supported by the network-based storage system, and wherein the second programming language is supported by the network-based storage system.

3. The method of claim 1 , further comprising:

determining a semantic context for the object referenced by the function; and

identifying the one or more candidate object types associated with the object based on the determined semantic context.

4. The method of claim 1 , further comprising:

parsing the one or more macros of the document into a syntax tree in the first programming language, the syntax tree comprising a plurality of nodes each corresponding to at least one of a respective object included in the macro or a respective function to be performed with respect to the object.

5. The method of claim 4 , wherein converting the function into one or more sets of operations comprises generating a set of nodes for a syntax tree in the second programming language, wherein each of the set of nodes corresponds to at least one of a candidate object type of the one or more candidate object types or a set of operations of the one or more sets of operations to be performed for the object.

6. The method of claim 5 , wherein storing the document comprising the one or more sets of operations represented in the second programming language comprises storing the syntax tree in the second programming language in a memory of the network-based storage system.

7. The method of claim 1 , wherein the function corresponds to a default function for the macro in the first programming language, and wherein the method further comprises:

responsive to identifying the one or more candidate object types for the object, identifying the one or more sets of operations, wherein each of the one or more sets of operations corresponds to a default set of operations performed for the default function in the first programming language, and wherein each default set of operations is associated with a candidate type of object of the one or more candidate object types that is referenced during execution of the macro.

8. The method of claim 7 , wherein identifying a set of operations of the one or more sets of operations comprises:

identifying, in a data structure associated with the default function of the macro in the first programming language, an entry corresponding to a candidate object type of the one or more candidate object types; and

extracting, from the identified entry, a default set of operations to be performed for the default function based on the corresponding candidate object type.

9. The method of claim 1 , wherein identifying the document to be stored on the network-based storage system comprises receiving, from a first client device connected to the network-based storage system, the document comprising the one or more macros in the first programming language, and wherein storing the document comprising the one or more sets of operations represented in the second programming language comprises storing the document in a memory for the network-based storage system.

10. A system comprising

a memory; and

a processing device coupled to the memory, the processing device to perform operations comprising:

identifying a document to be stored on a network-based storage system, wherein the document comprises one or more macros in a first programming language;

identifying an object referenced by a function defined by a macro of the one or more macros of the document;

converting the function into one or more sets of operations represented in a second programming language, wherein each set of operations corresponds to one of one or more candidate object types associated with the object, and wherein at least one of the one or more sets of operations is to be performed with respect to the object responsive to receiving an indication of a corresponding candidate object type for the object during execution of the macro; and

storing, on the network-based storage system, the document comprising the one or more sets of operations represented in the second programming language.

11. The system of claim 10 , wherein the first programming language is not supported by with the network-based storage system, and wherein the second programming language is supported by the network-based storage system.

12. The system of claim 10 , wherein the processing device is to perform operations further comprising:

determining a semantic context for the object referenced by the function; and

identifying the one or more candidate object types associated with the object based on the determined semantic context.

13. The system of claim 10 , wherein the processing device is to perform operations further comprising:

parsing the one or more macros of the document into a syntax tree in the first programming language, the syntax tree comprising a plurality of nodes each corresponding to at least one of a respective object included in the macro or a respective function to be performed with respect to the object.

14. The system of claim 13 , wherein converting the function into one or more sets of operations comprises generating a set of nodes for a syntax tree in the second programming language, wherein each of the set of nodes corresponds to at least one of a candidate object type of the one or more candidate object types or a set of operations of the one or more sets of operations to be performed for the object.

15. The system of claim 14 , wherein storing the document comprising the one or more sets of operations represented in the second programming language comprises storing the syntax tree in the second programming language in a memory of the network-based storage system.

16. The system of claim 10 , wherein the function corresponds to a default function for the macro in the first programming language, and wherein the operations further comprise:

responsive to identifying the one or more candidate object types for the object, identifying the one or more sets of operations, wherein each of the one or more sets of operations corresponds to a default set of operations performed for the default function in the first programming language, and wherein each default set of operations is associated with a candidate type of object of the one or more candidate object types that is referenced during execution of the macro.

17. A non-transitory computer readable storage medium comprising instructions for a server that, when executed by a processing device, cause the processing device to perform operations comprising:

identifying a document to be stored on a network-based storage system, wherein the document comprises one or more macros in a first programming language;

identifying an object referenced by a function defined by a macro of the one or more macros of the document;

converting the function into one or more sets of operations represented in a second programming language, wherein each set of operations corresponds to one of one or more candidate object types associated with the object, and wherein at least one of the one or more sets of operations is to be performed with respect to the object responsive to receiving an indication of a corresponding candidate object type for the object during execution of the macro; and

storing, on the network-based storage system, the document comprising the one or more sets of operations represented in the second programming language.

18. The non-transitory computer readable storage medium of claim 17 , wherein the first programming language is not supported by the network-based storage system, and wherein the second programming language is supported by the network-based storage system.

19. The non-transitory computer readable storage medium of claim 17 , wherein the processing device is to perform operations further comprising:

determining a semantic context for the object referenced by the function; and

identifying the one or more candidate object types associated with the object based on the determined semantic context.

20. The non-transitory computer readable storage medium of claim 17 , wherein the processing device is to perform operations further comprising:

parsing the one or more macros of the document into a syntax tree in the first programming language, the syntax tree comprising a plurality of nodes each corresponding to at least one of a respective object included in the macro or a respective function to be performed with respect to the object.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 28, 2023
From: BAPU, PANEENDRA ANANTHA RAO; MANEPALLI, SOWMITH; PODDAR, SOURAV; GARG, ABHAY; GINET, ALEXANDRE; DE, ARIJIT
To: GOOGLE LLC
Reel/Frame 065685/0229 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 5, 2023
From: BAPU, PANEENDRA ANANTHA RAO; MANEPALLI, SOWMITH; PODDAR, SOURAV; GARG, ABHAY; GINET, ALEXANDRE; DE, ARIJIT
To: GOOGLE LLC
Reel/Frame 062284/0412 →
Continuity (3)
Continuation 17217653 · Mar 30, 2021
Provisional Application 63113394 · Nov 13, 2020
Related Publication 20230146245A1 · May 11, 2023