Annotation processing method, device and equipment and computer readable storage medium
A processing method and annotation technology, applied in the computer field, can solve problems such as error-prone, time-consuming and labor-consuming, and achieve the effect of protecting safety and improving maintainability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0026] like figure 1 As shown, the first embodiment of the present invention provides an annotation processing method, which includes the steps of:
[0027] S11. Perform lexical analysis on the code of the source file to obtain a mark symbol.
[0028] In this embodiment, the code of the source file is scanned, and the character string sequences of the source code are spelled out one by one through lexical analysis, and converted into tokens.
[0029] In this embodiment, the code of the source file may use various programming languages, including but not limited to C, C++, Java, Python, and the like.
[0030] S12. Perform grammatical analysis according to the markup symbol to determine whether the markup symbol is a note.
[0031] In this embodiment, the grammatical structure of the program is determined according to the notation, and then it is determined whether the notation is a comment.
[0032] S13. If the mark symbol is a comment, process the comment.
[0033] In this...
no. 2 example
[0057] like figure 2As shown, the second embodiment of the present invention provides an annotation processing device, which includes a lexical analysis module 21, a syntax analysis module 22, and an annotation processing module 23;
[0058] The lexical analysis module 21 is configured to perform lexical analysis on the code of the source file to obtain mark symbols.
[0059] In this embodiment, the lexical analysis module 21 scans the code of the source file, spells out words one by one from the string sequence of the source code through lexical analysis, and converts them into tokens.
[0060] In this embodiment, the code of the source file may use various programming languages, including but not limited to C, C++, Java, Python, and the like.
[0061] The grammatical analysis module 22 is configured to perform grammatical analysis according to the marked symbols to determine whether the marked symbols are comments.
[0062] In this embodiment, the syntax analysis module 2...
no. 3 example
[0090] like Figure 7 As shown, the third embodiment of the present invention provides an annotation processing device, which includes: a memory 31, a processor 32, and an annotation processing program stored in the memory 31 and operable on the processor 32, When the annotation processing program is executed by the processor 32, it is used to implement the following steps of the annotation processing method:
[0091] Perform lexical analysis on the code of the source file to obtain markup symbols;
[0092] Carrying out grammatical analysis according to the mark symbol to determine whether the mark symbol is a comment;
[0093] If the mark symbol is a comment, then process the comment.
[0094] When the annotation processing program is executed by the processor 32, it is also used to implement the steps of the annotation processing method described below:
[0095] Performing desensitization processing on the annotations to obtain desensitized annotations;
[0096] Writing ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


