Method and device for parsing source file
A source file and file technology, applied in the field of parsing source files, can solve the problem of easy leakage of source code, and achieve the effect of improving security and readability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] This embodiment provides a method for searching and parsing source files under the source path, such as figure 1 shown, including the following steps:
[0051] Step 101, obtain the source path of the source file and the target path where the target file is located.
[0052] Wherein, the source path is the storage location of the source file, the target file is used to store the parsing result of the source file, and the target path is the storage location of the target file.
[0053] In step 102, it is judged whether the source path exists, and if it exists, execute step 103; otherwise, end the process.
[0054] Step 103, use the source path as the current path, and search for unprocessed objects in the current path.
[0055] Wherein, the object can be a file or a directory.
[0056] Step 104, judging whether an unprocessed object is found, if found, execute step 105; otherwise, execute step 112.
[0057] Step 105, judge whether the found object is a directory, if y...
Embodiment 2
[0318] Such as Figure 14 As shown, it is a structural diagram of a device for parsing source files in this embodiment, including an initialization module 1401, a reading module 1402, a first judgment module 1403, a first update module 1404, a second judgment module 1405, and a first parsing module. module 1406, the second parsing module 1407, the second updating module 1408, the third parsing module 1409, the fourth parsing module 1410 and the writing module 1411, wherein,
[0319] The initialization module 1401 is configured to open the source file, take the initial location of the source file as the current location, and trigger the reading module 1402 .
[0320] The reading module 1402 is configured to read a line of character strings backward from the current position.
[0321] The first judging module 1403 is configured to judge whether the reading module 1402 reads successfully.
[0322] The first updating module 1404 is configured to use the read character string as ...
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