Method and device for compiling computer language
A technology of computer language and grammar, applied in the direction of calculation, code compilation, program control design, etc., can solve the problems of low computer language compilation efficiency, achieve the effect of improving the success rate of compilation and the efficiency of compilation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] According to an embodiment of the present invention, an embodiment of a method for compiling a computer language is also provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0031] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Take running on a computer terminal as an example, figure 1 It is a block diagram of the hardware structure of a computer terminal of a method for compiling a computer language according to an embodiment of the present invention. Such as figure 1 As shown, the computer terminal 10 may include one or more (only one is shown ...
Embodiment 2
[0114] According to an embodiment of the present invention, an embodiment of an apparatus for implementing the foregoing method embodiments is also provided, and the apparatus provided by the foregoing embodiments of the present application can run on a computer terminal.
[0115] Figure 7 is a schematic structural diagram of an apparatus for compiling computer language according to Embodiment 2 of the present invention.
[0116] Such as Figure 7 As shown, the device for compiling computer language may include: a detection module 71 , a judgment module 72 , and a first execution module 73 .
[0117] Wherein, the detection module 71 is used to detect whether there is an erroneous grammatical unit in the sentence to be compiled according to the preset grammar; the judging module 72 is used to judge whether the child node where the grammatical unit is located is the corresponding parent if the detection result is yes. An optional node among the nodes; the first execution modu...
Embodiment 3
[0145] The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be used to store the program code executed by the method for compiling a computer language provided in the first embodiment above.
[0146] Optionally, in this embodiment, the above-mentioned storage medium may be located in any computer terminal in the group of computer terminals in the computer network, or in any mobile terminal in the group of mobile terminals.
[0147] Optionally, in this embodiment, the storage medium is configured to store program codes for performing the following steps: detect whether there is an error in the syntax unit of the statement to be compiled according to the preset syntax; if the detection result is yes, determine Whether the child node where the grammatical unit is located is an optional node in the corresponding parent node; if the judgment result is yes, the grammatical unit is deleted.
[0148] Op...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


