Code Base File Generation, Code Search, Joining, Optimization, and Porting Methods
A file generation and library file technology, applied in the computer field, can solve problems such as time-consuming, complicated workload, and difficult to summarize the operation mode and logic of code segments
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0120] This embodiment discloses a method for generating code library files, such as figure 1 As shown, the steps are as follows:
[0121] Step S1: First obtain the programming language and environment information of the source code;
[0122] Step S2: Load the slicing rule file of the corresponding language according to the programming language and environment information of the source code, and then divide the source code into independent code segments with complete functions according to the slicing program in the slicing rule file; For each independent code segment, retrieve whether there is an external code called, if so, add the external code to the meta code segment, and finally generate each meta code segment without calling external code;
[0123] Step S3: For each meta-code segment, first generate a library file, and then store each meta-code segment and the source code address and language and environment information corresponding to each meta-code segment in the library f...
Embodiment 2
[0203] This embodiment discloses a code search method, the steps are as follows:
[0204] Step X1: First, obtain the code library file generation method in Embodiment 1 to generate a library file and a summary file pointing to the library file;
[0205] Step X2. After receiving the user's code segment search request:
[0206] Step X21: Obtain the input type of the code segment required by the user, and then filter out the summary file with the same input type as the input type of the code segment;
[0207] In this embodiment, the search shortcut key entered by the user can be set as the arrow ↙ toward the bottom left. When the user enters: searchin:int,int:↙, the system will match the input type entered by the user and each summary , Such as step X21, at this time, if there are 1000 summary files that meet this situation, the search result will be shown to us as:
[0208] Result: 1000Counts (a total of 1000 search results);
[0209] If the code segment that the user wants is not entered...
Embodiment 3
[0251] This embodiment discloses an automatic code connection method, the steps are as follows:
[0252] Step Y1: First, obtain the code library file generation method in Embodiment 1 to generate a library file for the user to select and a summary file pointing to the library file;
[0253] Step Y2. Obtain the user-defined user function name. For the library file selected by the user, read the function name of the summary file pointing to the library file, and define it as the library file function name; extract the corresponding library file metacode Modify the content of the function definition as follows: replace the library file function name in the function definition content with the user function name, and then add the modified function definition content to the source code input by the user;
[0254] Get the user-defined user function name; for the library file selected by the user, read the function name of the summary file pointing to the library file and define it as the l...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com