主权项 |
1. A method performed by one or more processing devices, comprising:
obtaining a definition of a data structure, the definition specifying one or more fields of the data structure; obtaining a definition of one or more operations to be performed on the data structure, the definition of the one or more operations being in accordance with a first syntax; receiving, from a client device, a request to translate (i) instructions to perform the one or more operations in the first syntax on the one or more fields of the data structure, into (ii) instructions to perform the one or more operations in a second syntax on the one or more fields of the data structure; in response to the request to translate received from the client device,
generating a translation of the obtained definition of the one or more operations from the first syntax to the second syntax specified in the request; generating, in accordance with the second syntax based on the obtained definition of the data structure, access instructions for accessing the one or more fields of the data structure as defined in the obtained definition in the second syntax specified in the request; and at least partly based on the translation of the definition of the one or more operations from the first syntax to the second syntax,
generating the requested translation for performing in the second syntax specified in the request the one or more operations on the one or more fields of the data structure, with the requested instructions comprising the generated access instructions that are in the second syntax and are for accessing the one or more fields of the data structure. |