Method for parsing and executing program language and interpreting device

A technology for executing programs and programs, which is applied in the field of computer languages, can solve problems such as inability to support statements, and achieve the effect of enhancing the analysis function

Active Publication Date: 2016-03-02
BEIJING A&E TECH
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing general interpreter only relies on one line of code at a time, and cannot support these statements

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 for parsing and executing program language and interpreting device
  • Method for parsing and executing program language and interpreting device
  • Method for parsing and executing program language and interpreting device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The following description will be made in conjunction with the accompanying drawings and specific implementation manners.

[0036] refer to Figure 1 to Figure 3 , figure 1 It is a flow chart of an embodiment of a method for analyzing and executing a program language in the present invention, figure 2 yes figure 1 Schematic diagram of the structure of the program running information stack in step S104, image 3 yes figure 1 Schematic diagram of the structure of the control statement information stack in step S105. This implementation mode includes the following steps:

[0037] Step S101: The interpreter obtains a line of code.

[0038] In an industrial robot or a numerical control system, the interpreter in this embodiment also adopts the line interpretation method. However, in order to support the related statements between the upper and lower lines, the interpreter will also record the running information of the running program while parsing the program code. ...

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 an interpretation device for analyzing and executing a program language. The method comprises the following steps of acquiring a line of codes by an interpreter; analyzing the codes so as to acquire an analyzing result; if the analyzing result comprises a variable, storing or modifying or acquiring the information of the variable; if the analyzing result comprises program jump statements, recording program running information which invokes the program and a program invoking track, so that the program is invoked; and if the analyzing result comprises control statements, recording the information of the control statements and a nesting track of the control statements, so that the running of the control statements is realized. By such a way, the method and the interpretation device disclosed by the invention can analyze the program with relations between upper and lower lines, and the analyzing function of the interpreter is enhanced.

Description

technical field [0001] The invention relates to the technical field of computer language, in particular to a method and an interpretation device for analyzing and executing a program language. Background technique [0002] With the continuous development of technology, human beings are gradually entering an automated society. In the industrial field, people often use industrial robots or numerical control systems to complete some difficult tasks or perform production operations. Regardless of whether it is an industrial robot or a numerical control system, the automatic execution of a certain action is realized through the user's input instruction. In order to perform actions according to user requirements, industrial robots or numerical control systems need to use an interpreter to translate user input instructions into recognizable control commands, and instruct the system to perform corresponding actions according to the recognizable control commands. For example, the i...

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): G06F9/45
Inventor 王丽
Owner BEIJING A&E TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products