Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for compiling computer language

A computer language and grammar technology, applied in the field of computer technology application, can solve the problem of low efficiency of computer language compilation, and achieve the effect of improving the success rate of compilation and the efficiency of compilation

Active Publication Date: 2020-12-04
ALIBABA GRP HLDG LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Embodiments of the present invention provide a method and device for compiling computer language, to at least solve the technical problem of low computer language compilation efficiency due to the lack of fault-tolerant compiling technology for computer language in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for compiling computer language
  • Method and device for compiling computer language
  • Method and device for compiling computer language

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for compiling computer language. Wherein, the method includes: detecting whether there is an erroneous grammatical unit in the statement to be compiled according to the preset grammar; when the detection result is yes, judging whether the child node where the grammatical unit is located is an optional node in the corresponding parent node; When the judgment result is Yes, the syntax unit is deleted. The invention solves the technical problem of low computer language compilation efficiency due to lack of fault-tolerant compiling technology for computer languages ​​in the prior art.

Description

technical field [0001] The present invention relates to the application field of computer technology, in particular to a method and device for compiling computer language. Background technique [0002] With the widespread use of computer languages, the compilation of computer languages ​​has become an indispensable key step in the use of computer languages. Due to the subjectivity of human-written computer languages, there will be initial grammatical errors in the grammar of computer languages. Therefore, how to efficiently and correctly compile the manually written computer language has become a problem to be solved by those skilled in the art. [0003] The computer language is analyzed and compiled to make it from a language that is easy to understand for humans to a language that is easy for computers to understand. The basic process of compiling is to convert the source code into an authentication Token sequence, and then convert it into a syntax analysis tree (Parse Tr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/41
CPCG06F8/41G06F8/42G06F8/427
Inventor 侯震宇
Owner ALIBABA GRP HLDG LTD