Domain specific language script splicing method and system

A script and a specific technology, applied in the computer field, can solve the problems of high system resource consumption and low script writing efficiency, and achieve the effects of optimizing performance, improving assembly efficiency, and improving writing efficiency.

Pending Publication Date: 2020-08-25
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, an embodiment of the present invention provides a domain-specific language script assembling method, system, computer equipment, and compute

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
  • Domain specific language script splicing method and system
  • Domain specific language script splicing method and system
  • Domain specific language script splicing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] see figure 1 , shows a flow chart of the steps of the domain-specific language script assembling method according to the embodiment of the present invention. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. The following is an exemplary description taking computer equipment as the execution subject, as follows:

[0049] Step S100: Obtain the original script or original script group in data language format.

[0050] Specifically, the data language format refers to the language used to unify the exchange format when the computer front-end and back-end data are exchanged. In this embodiment, the data language format is JSON format, and JSON (JavaScript Object Notation, JS Object Notation) is a A lightweight data exchange format. It stores and represents data in a text format that is completely independent of the programming language.

[0051] In an exemplary embodiment, such as figure 2 As shown, ...

Embodiment 2

[0089] read on Figure 7 , shows a schematic diagram of program modules of the field-specific language script assembly system of the present invention. In this embodiment, the domain-specific language script assembly system 20 may include or be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors, In order to complete the present invention, and realize the above domain-specific language script assembling method. The program module referred to in the embodiment of the present invention refers to a series of computer program instruction segments capable of completing specific functions, which is more suitable than the program itself to describe the execution process of the domain-specific language script assembly system 20 in the storage medium. The following description will specifically introduce the functions of each program module of the present embodiment:

[0090]The script acquisition...

Embodiment 3

[0113] refer to Figure 8 , is a schematic diagram of the hardware architecture of the computer device according to Embodiment 3 of the present invention. In this embodiment, the computer device 2 is a device capable of automatically performing numerical calculation and / or information processing according to preset or stored instructions. The computer device 2 may be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers) and the like. Such as Figure 8 As shown, the computer device 2 at least includes, but is not limited to, a memory 21 , a processor 22 , a network interface 23 , and a domain-specific language script assembly system 20 that can communicate with each other through a system bus. in:

[0114] In this embodiment, the memory 21 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia ca...

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 provides a domain specific language script splicing method. The method comprises the steps of obtaining original scripts or original script groups in a data language format; identifyingan object type of the original script or the original script group in the data language format, wherein the object type comprises a logic object, an operator and a data object; replacing a logic object in the object type with a logic block based on a scripting language, replacing the data object with a placeholder, merging the logic block, the placeholder and the operator, and generating a scriptor a script group of a primary domain specific language based on the scripting language; and replacing the placeholders with business data, and generating a final version domain specific language script or script group based on the script language. According to the domain specific language script splicing method and system, the computer equipment and the computer readable storage medium provided by the invention, the splicing efficiency of the domain specific language script is improved, and the performance of the system is optimized.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and system for assembling domain-specific language scripts. Background technique [0002] Domain-specific language (DSL, domain-specific language) refers to a computer language that focuses on a certain application domain. At present, most domain-specific languages ​​on the market only use programming language to package business logic and data. Users only need to provide simple logic without caring about programming language and system processing details. However, there is a problem in the current domain-specific language design methods on the market, that is, the problem of data source acquisition. Designers often cannot predict what data users will use, so before executing domain-specific language scripts written by users, designers will obtain all data that users may use and pass them to the domain-specific language scripts written by users. language script. Thi...

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): G06F8/30G06F16/25G06F16/28
CPCG06F8/31G06F16/258G06F16/283
Inventor 杨越
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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