发明名称 Generating a translation of operations for a data structure
摘要 A method performed by one or more processing devices includes obtaining a definition of a 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 a request for instructions to perform the one or more operations on the one or more fields of the data structure, the instructions being in accordance with a second syntax; generating a translation of the definition of the one or more operations from the first syntax to the second syntax; generating instructions for accessing the one or more fields of the data structure; and generating the instructions in accordance with the second syntax for performing the one or more operations on the one or more fields of the data structure.
申请公布号 US9092440(B1) 申请公布日期 2015.07.28
申请号 US201113233643 申请日期 2011.09.15
申请人 Google Inc. 发明人 Wen Jianjun
分类号 G06F17/30;G06F15/173 主分类号 G06F17/30
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 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.
地址 Mountain View CA US