Text command analyzing and processing method

A technology for parsing processing and text, applied in the fields of electrical digital data processing, special data processing applications, instruments, etc., can solve the problem of inability to parse command strings, and achieve the goal of improving accuracy, time efficiency, flexibility and scalability. Effect

Inactive Publication Date: 2008-01-23
ZTE CORP
View PDF0 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In addition, in the prior art, there is no special discussion on the syntax and semantic processing technology of text commands with nested structures. However, text commands with nested structures have broad application prospects, especially for protocol communication between network element devices. For example, the application product provisioning database program (Provisioning Database Application, PDBA) provided by Tekelec company, if the system of other companies wants to access the data in PDBA, it must connect to the PDBA server as a client, through the provisioning database interface (Provisioning Database Interface, PDBI) interface protocol Communicate with it, and the PDBI interface protocol uses a text command format with a complex nested structure
[0005] Therefore, the prior art or method cannot correctly parse this text command string

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
  • Text command analyzing and processing method
  • Text command analyzing and processing method
  • Text command analyzing and processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0025] Fig. 1 is the flow chart of the text command analysis processing method according to the present invention, as shown in Fig. 1, the method comprises the following steps:

[0026] S102. When a character stream containing a text command string is received, identify and extract the text command string one by one from the character stream, and store the text command string in a buffer;

[0027] S104, fetching a text command string to be processed from the buffer, and according to the grammar rules of the text command string, the lexical analyzer performs lexical analysis on the text command string to be processed to obtain a command vocabulary;

[0028] S106, the...

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 present invention provides a text command analyzing and processing method, which comprises the following procedures: when a character stream which contains text command strings is received, the text command strings are identified one by one from the character stream and are withdrawn, and the text command strings are stored in a buffer; a text command string waiting for processing is taken out of the buffer, and according to the grammar rule of the text command strings, a lexical analyzer makes a lexical analysis for the text command string waiting for processing, to obtain a command vocabulary; a grammar analyzer makes a grammar analysis for each command vocabulary in the command vocabulary, to obtain a grammar parsing tree; a semantic processor traverses the grammar parsing tree, to find a semantic attribute corresponding to each node, thus the accuracy of the command analyzing and the time efficiency are greatly improved through the present invention, and the analysis to the command strings with a complex nested structure can be realized.

Description

technical field [0001] The invention relates to the lexical, grammatical analysis technology and semantic processing technology of any interface protocol message based on the text command mode in the network communication system, and more specifically, relates to a text command parsing and processing method. Background technique [0002] Modern data communication equipment such as switches, routers, etc. widely use man-machine command interface technology, which provides users with a simple and powerful way to operate and maintain equipment; communication between equipment developed by different manufacturers is also widely used based on plain text commands The interface protocol, which has the advantage of being cross-platform. [0003] At present, the main problem of many man-machine command interface systems in text command parsing is that they do not use compiling technology to parse command strings, but use symbol string search to process them, which leads to inaccurate...

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): H04L29/02H04L29/06G06F17/27
Inventor 陈河堆
Owner ZTE CORP
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