CN110489103A - A kind of air control rule editor interactive device and method - Google Patents

A kind of air control rule editor interactive device and method Download PDF

Info

Publication number
CN110489103A
CN110489103A CN201910729925.2A CN201910729925A CN110489103A CN 110489103 A CN110489103 A CN 110489103A CN 201910729925 A CN201910729925 A CN 201910729925A CN 110489103 A CN110489103 A CN 110489103A
Authority
CN
China
Prior art keywords
unit
grammer
request
prompt
syntax
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910729925.2A
Other languages
Chinese (zh)
Inventor
胡蓬
桂林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongtengxin Financial Information Service (shanghai) Co Ltd
Original Assignee
Zhongtengxin Financial Information Service (shanghai) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongtengxin Financial Information Service (shanghai) Co Ltd filed Critical Zhongtengxin Financial Information Service (shanghai) Co Ltd
Priority to CN201910729925.2A priority Critical patent/CN110489103A/en
Publication of CN110489103A publication Critical patent/CN110489103A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems

Abstract

The invention discloses a kind of air control rule editor interactive device and methods, air control rule editor interactive device, including grammer configuration unit, grammer prompt unit, syntax check unit, editing area unit, control the exchange method of rule editor interactive device, include the following steps, grammer configuration unit carries out syntax tree configuration, when editing area unit is write, editing area monitor monitors text variation, submit current text request to grammer prompt unit, grammer prompt unit is connected to the request in step 2, current text is obtained from request, be converted to syntax tree, return to matched prompt, and forward the request to syntax check unit, syntax check unit receives the request in step 3, to the text of request, according to grammer configuration unit grammer configuration information, carry out syntax check, and return to inspection result.The present invention provides standardization integration mode using unified programming model, improves application and development efficiency.

Description

A kind of air control rule editor interactive device and method
Technical field
The present invention relates to air control rule editor interactive device technical field, specially a kind of air control rule editor interaction Device and method.
Background technique
Rule, which is write, in air control system is generally divided into wizard-like, script formula, list data importing, the prompt of each way, Verification requires customized development, has put into a large amount of product, exploitation, testing time, efficiency is lower, and higher cost.
Summary of the invention
The purpose of the present invention is to provide a kind of air control rule editor interactive device and methods, to solve above-mentioned background skill The problem of being proposed in art.
To achieve the above object, the invention provides the following technical scheme: a kind of air control rule editor interactive device, packet It includes:
Grammer configuration unit is abstracted into editing area text association prompt, logic verify on syntax tree, provides syntax tree It writes, error description;
Grammer prompt unit uniformly encapsulates prompt and extracts logic, and according to request content, it is corresponding to return to grammer configuration unit Related prompt;
Syntax check unit uniformly encapsulates syntax check logic, carries out syntactic analysis to the content in editing area unit It checks, returns to inspection result;
Editing area unit standardizes editing area generic operation interface, region is write, according to returning for the grammer prompt unit It returns, prompt is write in display, and according to the return of the syntax check unit, mistake is write in prompting.
Preferably, the syntax tree is described using ANTRL4, describes grammer with the structure type of tree.
A kind of exchange method based on air control rule editor interactive device, includes the following steps:
Step 1: grammer configuration unit carries out syntax tree configuration;
Step 2: when editing area unit is write, editing area monitor monitors text variation, submits current text request To grammer prompt unit;
Step 3: grammer prompt unit is connected to the request in step 2, and current text is obtained from request, is converted to grammer Tree, returns to matched prompt, and forward the request to syntax check unit;
Step 4: syntax check unit receives the request in step 3, to the text of request, according to grammer configuration unit grammer Configuration information carries out syntax check, and returns to inspection result.
Compared with prior art, the beneficial effects of the present invention are:
1, of the invention, using unified programming model, standardization integration mode is provided, improves application and development efficiency;
2, of the invention, personnel's investment of product, exploitation, test is reduced, the mode of operation of standard is provided, reduces into This.
Detailed description of the invention
Fig. 1 is module frame chart of the invention;
Fig. 2 is each module timing diagram of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The present invention provides a kind of technical solution referring to FIG. 1-2: a kind of air control rule editor interactive device, comprising:
Grammer configuration unit is abstracted into editing area text association prompt, logic verify on syntax tree, provides syntax tree It writes, error description, has reached all kinds of demands of adaptation;
Grammer prompt unit uniformly encapsulates prompt and extracts logic, and according to request content, it is corresponding to return to grammer configuration unit Related prompt, facilitate later release to upgrade;
Syntax check unit uniformly encapsulates syntax check logic, carries out syntactic analysis to the content in editing area unit It checks, returns to inspection result, later release is facilitated to upgrade;
Editing area unit standardizes editing area generic operation interface, writes region, according to the return of grammer prompt unit, shows Show and write prompt, according to the return of syntax check unit, prompting writes mistake, is conveniently integrated into all kinds of software systems.
Specifically, syntax tree is described using ANTRL4, grammer is described with the structure type of tree, is improved out well Send out efficiency.
A kind of exchange method based on air control rule editor interactive device, includes the following steps:
Step 1: grammer configuration unit carries out syntax tree configuration;
Step 2: when editing area unit is write, editing area monitor monitors text variation, submits current text request To grammer prompt unit;
Step 3: grammer prompt unit is connected to the request in step 2, and current text is obtained from request, is converted to grammer Tree, returns to matched prompt, and forward the request to syntax check unit;
Step 4: syntax check unit receives the request in step 3, to the text of request, according to grammer configuration unit grammer Configuration information carries out syntax check, and returns to inspection result.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is defined by the appended.

Claims (3)

1. a kind of air control rule editor interactive device, characterized by comprising:
Grammer configuration unit, editing area text association prompt, logic verify, be abstracted on syntax tree, provide syntax tree write, Error description;
Grammer prompt unit uniformly encapsulates prompt and extracts logic, according to request content, returns to the corresponding phase of grammer configuration unit Close prompt;
Syntax check unit uniformly encapsulates syntax check logic, carries out syntactic analysis inspection to the content in editing area unit, Return to inspection result;
Editing area unit standardizes editing area generic operation interface, writes region, according to the return of the grammer prompt unit, shows Show and write prompt, according to the return of the syntax check unit, mistake is write in prompting.
2. a kind of air control rule editor interactive device according to claim 1, it is characterised in that: the syntax tree uses ANTRL4 is described, and describes grammer with the structure type of tree.
3. a kind of exchange method based on air control rule editor interactive device, it is characterised in that include the following steps:
Step 1: grammer configuration unit carries out syntax tree configuration;
Step 2: when editing area unit is write, editing area monitor monitors text variation, submits current text request to language Method prompt unit;
Step 3: grammer prompt unit is connected to the request in step 2, and current text is obtained from request, is converted to syntax tree, returns Matched prompt is returned, and forwards the request to syntax check unit;
Step 4: syntax check unit receives the request in step 3, to the text of request, is configured according to grammer configuration unit grammer Information carries out syntax check, and returns to inspection result.
CN201910729925.2A 2019-08-08 2019-08-08 A kind of air control rule editor interactive device and method Pending CN110489103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910729925.2A CN110489103A (en) 2019-08-08 2019-08-08 A kind of air control rule editor interactive device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910729925.2A CN110489103A (en) 2019-08-08 2019-08-08 A kind of air control rule editor interactive device and method

Publications (1)

Publication Number Publication Date
CN110489103A true CN110489103A (en) 2019-11-22

Family

ID=68549658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910729925.2A Pending CN110489103A (en) 2019-08-08 2019-08-08 A kind of air control rule editor interactive device and method

Country Status (1)

Country Link
CN (1) CN110489103A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100036661A1 (en) * 2008-07-15 2010-02-11 Nu Echo Inc. Methods and Systems for Providing Grammar Services
CN102043570A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Command line input method and device
CN102063324A (en) * 2010-12-31 2011-05-18 杭州依赛通信有限公司 Method and system for implementing automatic programming
CN102682118A (en) * 2012-05-15 2012-09-19 北京久其软件股份有限公司 Multidimensional data model access method and device
CN106970819A (en) * 2017-03-28 2017-07-21 清华大学 A kind of c program code specification check device based on the regular description languages of PRDL
CN107943481A (en) * 2017-05-23 2018-04-20 清华大学 C programmer code specification building method based on multi-model
CN108388430A (en) * 2018-01-26 2018-08-10 珠海金山网络游戏科技有限公司 A kind of mobile terminal data check system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100036661A1 (en) * 2008-07-15 2010-02-11 Nu Echo Inc. Methods and Systems for Providing Grammar Services
CN102043570A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Command line input method and device
CN102063324A (en) * 2010-12-31 2011-05-18 杭州依赛通信有限公司 Method and system for implementing automatic programming
CN102682118A (en) * 2012-05-15 2012-09-19 北京久其软件股份有限公司 Multidimensional data model access method and device
CN106970819A (en) * 2017-03-28 2017-07-21 清华大学 A kind of c program code specification check device based on the regular description languages of PRDL
CN107943481A (en) * 2017-05-23 2018-04-20 清华大学 C programmer code specification building method based on multi-model
CN108388430A (en) * 2018-01-26 2018-08-10 珠海金山网络游戏科技有限公司 A kind of mobile terminal data check system and method

Similar Documents

Publication Publication Date Title
Mens et al. Evolving software architecture descriptions of critical systems
CN106940428B (en) Chip verification method, device and system
CN104484169B (en) A kind of Android software user interface creating method, system and application system
CN108038294B (en) UVM environment building method and system
CN105117233A (en) API calling method and device
CN109474488A (en) Interface test method, device and computer equipment
WO2017162210A1 (en) Test configuration method and device
CN102355062B (en) IEC (International Electrotechnical Commission) 61850 relay protection model checking method
CN104407980A (en) Mobile application automated testing device and method
CN103425585B (en) OSGI (Open Service Gateway Initiative) integration testing method
CN110222318A (en) Data generating tool development approach based on XML
CN109783195A (en) A kind of real-time adjustment method of intelligent contract based on container
CN103605556A (en) Virtual test subject integrally-constructing system and method
CN114385480A (en) Hardware-in-loop test system for automatic verification of FOTA function of vehicle
CN109995643A (en) Business mail push method and device
CN110209389A (en) A kind of data generating tool development system based on XML
CN112100081B (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN105786695A (en) Data test method and system
CN107273250B (en) Testing method and device of electronic insurance policy automatic underwriting system
CN116049974A (en) Aircraft alarm logic design and simulation system and design and simulation method
US20090112554A1 (en) Test Bench, Method, and Computer Program Product for Performing a Test Case on an Integrated Circuit
CN109932588B (en) Avionics equipment verification test engine
CN109582391A (en) A kind of device tree configuration method based on XML
CN109598602A (en) Account checking method, device, equipment and computer readable storage medium
CN109143277A (en) A kind of GNSS receiver automatic software test method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191122

RJ01 Rejection of invention patent application after publication