IDL file-based analysis method and device, electronic equipment and storage medium
A parsing method and document technology, applied in software engineering design, multi-programming device, program control design, etc., can solve the problems of poor accuracy and high labor cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] refer to figure 1 , which shows a flow chart of specific steps of an IDL file-based parsing method provided in Embodiment 1 of the present invention.
[0029] Step 101, acquire user configuration information, and determine an IDL file from the user configuration information.
[0030] The embodiment of the present invention is applied to the remote call framework Thrift, such as figure 2 As shown, the remote call framework involves the client at the front end and the server at the back end. The client is usually implemented through Node.js, which can complete the underlying protocol conversion, parameter serialization, network I / O and other links. The client and The server has the corresponding underlying network I / O layer, TTransport transport layer, TProtocol protocol layer, and Foo.write() / read() read-write layer, FooService.Client client class layer, FooService.Processor processing layer, business logic layer. Among them, the Foo.write() / read() read-write layer, ...
Embodiment 2
[0046] refer to image 3 , which shows a flow chart of specific steps of an IDL file-based parsing method provided in Embodiment 2 of the present invention.
[0047] Step 201, acquire user configuration information, and determine an IDL file from the user configuration information.
[0048] For this step, reference may be made to the detailed description of step 101, which will not be repeated here.
[0049] Step 202: Determine an entry IDL file from the IDL file according to the user configuration information.
[0050] Wherein, the entry IDL file is an IDL file defining the service, and generally, the path of the entry IDL file can be specified in the user configuration information.
[0051]Step 203, read the entry IDL file to obtain the target character set.
[0052] Specifically, the file opening and reading interface can be called to read the content of the entry IDL file from the entry IDL file to obtain the target character set.
[0053] Step 204, using a preset pars...
Embodiment 3
[0102] refer to Figure 4, which shows a structural diagram of an IDL file-based parsing device provided in Embodiment 3 of the present invention, and the details are as follows.
[0103] The IDL file determining module 301 is configured to acquire user configuration information, and determine an IDL file from the user configuration information.
[0104] The IDL file parsing module 302 is configured to parse the IDL file by using a preset parsing function stack to obtain an abstract syntax tree.
[0105] A connection class instantiation module 303, configured to extract a connection class from the abstract syntax tree, and instantiate the connection class to obtain a connection class instance.
[0106] A function encapsulation module 304, configured to encapsulate the connection class instance and the abstract syntax tree as a client function.
[0107] In summary, the embodiment of the present invention provides a parsing device based on an IDL file, the device comprising: a...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com