Visualized code generation method based on combination of API (application programming interface) and script definition

An API interface and code generation technology, applied in the field of visual programming, can solve problems such as lack of flexibility and versatility, and achieve the effect of improving development efficiency

Inactive Publication Date: 2012-08-22
NR ELECTRIC CO LTD +1
View PDF3 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Existing code generation methods are often bound to the system software interface, or are limited to a certain application occasion. When the underlying system software interface ch

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
  • Visualized code generation method based on combination of API (application programming interface) and script definition
  • Visualized code generation method based on combination of API (application programming interface) and script definition
  • Visualized code generation method based on combination of API (application programming interface) and script definition

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0031] The present invention provides a visual code generation method based on the combination of API interface and script definition. The visual program is organized according to levels. The program is composed of several components, and the components are composed of several visual pages. line composition; coordination figure 1 As shown, the process of the present invention is: the front-end processor reads the visualization project file, imports the symbol library, and forms the visualization page data in the memory. Start the script engine, parse and execute the script, call the API interface library in the script, and access the attributes of the symbol. After the script is executed, the backend processor organizes the text paragraphs and outputs the code text.

[0032] The code generation method of the present invention specifically...

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 visualized code generation method based on the combination of an API (application programming interface) and script definition, which is characterized in that visualized programs are hierarchically organized, each program is composed of a plurality of elements, each element is composed of a plurality of visualized pages, and each visualized page is composed of a plurality of graphic symbols and data links. The method comprises the following steps that: a front-end processor reads visualized project files and imports the visualized project files into a symbol library so as to form visualized page data in a memory, starts a script engine, analyzes and executes a script, calls an API library in the script, and accesses the attribute of a symbol; and after the execution of the script is completed, a back-end processor organizes text paragraphs, and outputs a code text. According to the method disclosed by the invention, through using a conventional function of providing a programming platform of the API, the code of a symbol can be defined in a script, so that the dependence on a system software interface is shaken off, and good expansibility is provided for the application personnel; meanwhile, the script can be written, and under the condition of not modifying graphic programs and programming platforms, application scenes can be switched, and then corresponding object codes can be output.

Description

technical field [0001] The invention belongs to the field of visual programming, and in particular relates to a code generation method of a visual graphic program. Background technique [0002] The visual programming platform is a tool for realizing graphical and modular programming based on object-oriented ideas. It calls pre-developed function blocks from symbol library files to build visual page programs, and the programming tools automatically generate codes. Existing code generation methods are often bound to the system software interface, or are limited to a certain application occasion. When the underlying system software interface changes or the application scenario changes, or the application has new requirements, it needs to be modified or redeveloped Code generation tools lack flexibility and versatility. [0003] API (Application Programming Interface, application programming interface) are some predefined functions, the purpose is to provide applications and de...

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
IPC IPC(8): G06F9/44
Inventor 陈宏君刘克金冯亚东曹冬明周强张磊袁涛王国栋
Owner NR ELECTRIC CO LTD
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