Custom logic method and system using domain-specific language, and readable medium

A domain-specific language and logic method technology, applied in the field of custom logic method, system and computer readable medium, can solve the problems of high usage cost, rising usage cost, difficulty in realizing logic arrangement, etc., and achieve the effect of high usage efficiency

Active Publication Date: 2021-01-15
浙江太美医疗科技股份有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it is difficult to implement complex logic arrangement in the way of graphical custom logic
And as the scale of the system increases to a certain extent, the user's cost of use will rise rapidly with the increase of system functions. At this time, continuing to use the graphical method will require higher cost of use than the programming method.

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
  • Custom logic method and system using domain-specific language, and readable medium
  • Custom logic method and system using domain-specific language, and readable medium
  • Custom logic method and system using domain-specific language, and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027]In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some examples or embodiments of the present application, and those skilled in the art can also apply the present application to other similar scenarios. Unless otherwise apparent from context or otherwise indicated, like reference numerals in the figures represent like structures or operations.

[0028] As indicated in this application and claims, the terms "a", "an", "an" and / or "the" do not refer to the singular and may include the plural unless the context clearly indicates an exception. Generally speaking, the terms "comprising" and "comprising" only suggest the inclusion of clearly identified steps and elements, and these steps and elements do not constitute an exclusive list, and t...

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 custom logic method and system using domain-specific language, and a computer readable medium. The method comprises the steps: receiving an original code input by a user and afunction type of the original code, wherein the original code uses a preset domain-specific language based on a Type Script language, and grammars of the preset domain-specific language comprise a first preset grammar and a second preset grammar; registering the TypeScript statement file into a compiler; converting the original code into an abstract syntax tree; verifying the original code according to the Type Script declaration file; verifying whether the function type of the abstract syntax tree is consistent with the function type of the original code input by the user or not according toa second preset syntax; converting the abstract syntax tree according to a first preset syntax; and outputting the executable script according to the abstract syntax tree. The method can achieve custom complex logic with low user learning cost and is suitable for a large-scale system.

Description

technical field [0001] The present application mainly relates to the field of computer technology, and in particular relates to a self-defined logic method, system and computer-readable medium using a domain-specific language. Background technique [0002] When users use the functions in the system, they often encounter the problem that the system's default processing flow or logic cannot meet the user's needs. In this case, users need to implement the functions they need through custom logic, but the functions that can be programmed and customized in the system are limited. Therefore, the system divides the overall logic into indivisible minimum logic units for users to use, and users can realize individual requirements by freely combining the logic. Therefore, logical arrangement refers to the rearrangement and combination of logical units according to the user's needs based on the customized functions provided by the system. [0003] In the prior art, there are generall...

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 Applications(China)
IPC IPC(8): G06F9/455G06F8/30G06F8/41
CPCG06F8/313G06F8/315G06F8/41G06F9/45558G06F2009/45562
Inventor 杨涛鲍勇翔
Owner 浙江太美医疗科技股份有限公司
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