Business form data processing method and device, computer device and storage medium

By performing lexical analysis and syntax tree construction on the operation logic strings of business forms, the problem of porting business forms across different platforms was solved, enabling flexible data processing and display.

CN117217232BActive Publication Date: 2026-11-20KINGDEE DEEKING CLOUDCOMPUTING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311243931.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2026-11-20
Estimated Expiration
2043-09-22

AI Technical Summary

Technical Problem

Existing business forms are difficult to port flexibly across different platforms, resulting in limited usability.

Method used

By reading the operation logic string of the business form, lexical analysis is performed to construct a syntax tree. Based on the syntax tree and the data format of the target application, structured data is constructed, logical semantics are identified, and operations are performed. Finally, the operation results are displayed on the user interface.

Benefits of technology

It enables simple and efficient portability of business forms across different web and mobile platforms, improving flexibility and maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117217232B_ABST
    Figure CN117217232B_ABST
Patent Text Reader

Abstract

The application relates to a business form data processing method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: reading a business form in a target application program to obtain a string representing the operation logic of the business form; performing lexical analysis on the string to obtain a syntax tree corresponding to the operation logic of the business form; constructing structured data corresponding to the syntax tree; identifying the structured data to obtain the logical semantics corresponding to the string, obtaining a target value of an input control corresponding to a user interface where the business form is located according to the value logic semantics in the logical semantics, performing operation on the obtained target value according to the operation logic semantics in the logical semantics to obtain an operation result; and assigning the operation result to an output control corresponding to the user interface where the business form is located, and displaying the business form. The method can make the use of the business form more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for processing business form data. Background Technology

[0002] A business form is a data input and display interface used in business processes. It is used to collect and display data related to the business process. Business forms typically present users with editable fields and options, and provide a set of actions for users to enter the necessary data, perform validation, and submit the data.

[0003] However, currently developed business forms are often based on specific platforms and programming languages, making them difficult to port to other web, mobile, or programming language environments, which greatly limits the flexibility of business forms. Summary of the Invention

[0004] Therefore, it is necessary to provide a business form data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve the flexibility of using business forms, in order to address the above-mentioned technical problems.

[0005] Firstly, this application provides a method for processing business form data. The method includes:

[0006] Read the business form located in the target application and obtain a string representing the operation logic of the business form;

[0007] Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0008] Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree;

[0009] The structured data is identified to obtain the logical semantics corresponding to the string, and the logical semantics include operational logical semantics and value retrieval logical semantics;

[0010] Based on the value retrieval logic semantics in the logical semantics, the target value of the input control corresponding to the user interface where the business form is located is obtained, and the obtained target value is calculated based on the operation logic semantics in the logical semantics to obtain the calculation result;

[0011] The calculation result is assigned to the output control corresponding to the user interface where the business form is located, and the business form is displayed.

[0012] In one embodiment, constructing structured data corresponding to the syntax tree based on the syntax keywords corresponding to each leaf node in the syntax tree and the data format supported by the target application includes: traversing the syntax keywords corresponding to each leaf node in the syntax tree to determine the traversed syntax keywords; obtaining the application format that supports the recognition of the target application; determining the structured sub-data corresponding to each syntax keyword based on the application format recognized by the target application; and determining the structured data corresponding to the syntax tree based on the structured sub-data corresponding to each syntax keyword after the traversal is completed.

[0013] In one embodiment, before obtaining the preset grammar classification tree, the method further includes: obtaining the grammar classification tree to be trained and multiple classification features; obtaining the sample word character sets corresponding to each of the multiple sample strings, each sample word character set corresponding to a grammar keyword; classifying the multiple sample strings layer by layer based on the sample word character sets corresponding to each of the multiple sample strings, obtaining the classification result for each step in each layer; selecting the classification feature corresponding to the corresponding node from the multiple classification features according to the classification result corresponding to the corresponding non-leaf node in the corresponding layer; constructing the child nodes connected to the corresponding nodes in the classification tree to be trained until a preset stopping condition is met, thereby obtaining the preset grammar classification tree for lexical analysis of the strings.

[0014] In one embodiment, the step of performing lexical analysis on the string to obtain the syntax tree corresponding to the operation logic of the business form includes: splitting the string using delimiters to obtain multiple word characters; obtaining a preset syntax classification tree for performing lexical analysis on the string, wherein each non-leaf node of the preset syntax classification tree corresponds to a classification feature; determining the target leaf node to which each word character is classified based on the preset syntax classification tree and the multiple word characters; and obtaining the syntax tree corresponding to the operation logic of the business form based on the syntax keywords corresponding to each target leaf node.

[0015] In one embodiment, determining the target leaf node to which each word character is classified based on the preset grammar classification tree and the plurality of word characters includes: determining the current node from the root node of the preset grammar classification tree, and determining the target child node to which each word character is classified based on the classification features corresponding to the current node and the plurality of word characters corresponding to the string, wherein the target child node is a child node of the current node; taking the target child node as the new current node, returning to the step of determining the target child node to which each word character is classified based on the classification features corresponding to the current node and the plurality of word characters corresponding to the string, and continuing to execute until a leaf node is reached; taking the reached leaf node as the target leaf node to which each word character is classified.

[0016] In one embodiment, before reading the business form located in the target application, the method further includes: receiving a business form sent by another terminal or another application in response to a triggering operation on the business form.

[0017] Secondly, this application also provides a business form data processing apparatus. The apparatus includes:

[0018] The reading module is used to read business forms located in the target application and obtain a string representing the calculation logic of the business forms;

[0019] The analysis module is used to perform lexical analysis on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0020] The construction module is used to construct structured data corresponding to the syntax tree based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application.

[0021] The recognition module is used to recognize the structured data and obtain the logical semantics corresponding to the string. The logical semantics include operational logical semantics and value retrieval logical semantics.

[0022] The calculation module is used to obtain the target value of the input control corresponding to the user interface where the business form is located according to the value retrieval logic semantics in the logical semantics, and to perform calculations on the obtained target value according to the calculation logic semantics in the logical semantics to obtain the calculation result;

[0023] The display module is used to assign the calculation result to the output control corresponding to the user interface where the business form is located, and to display the business form.

[0024] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0025] Read the business form located in the target application and obtain a string representing the operation logic of the business form;

[0026] Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0027] Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree;

[0028] The structured data is identified to obtain the logical semantics corresponding to the string, and the logical semantics include operational logical semantics and value retrieval logical semantics;

[0029] Based on the value retrieval logic semantics in the logical semantics, the target value of the input control corresponding to the user interface where the business form is located is obtained, and the obtained target value is calculated based on the operation logic semantics in the logical semantics to obtain the calculation result;

[0030] The calculation result is assigned to the output control corresponding to the user interface where the business form is located, and the business form is displayed.

[0031] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0032] Read the business form located in the target application and obtain a string representing the operation logic of the business form;

[0033] Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0034] Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree;

[0035] The structured data is identified to obtain the logical semantics corresponding to the string, and the logical semantics include operational logical semantics and value retrieval logical semantics;

[0036] Based on the value retrieval logic semantics in the logical semantics, the target value of the input control corresponding to the user interface where the business form is located is obtained, and the obtained target value is calculated based on the operation logic semantics in the logical semantics to obtain the calculation result;

[0037] The calculation result is assigned to the output control corresponding to the user interface where the business form is located, and the business form is displayed.

[0038] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0039] Read the business form located in the target application and obtain a string representing the operation logic of the business form;

[0040] Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0041] Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree;

[0042] The structured data is identified to obtain the logical semantics corresponding to the string, and the logical semantics include operational logical semantics and value retrieval logical semantics;

[0043] Based on the value retrieval logic semantics in the logical semantics, the target value of the input control corresponding to the user interface where the business form is located is obtained, and the obtained target value is calculated based on the operation logic semantics in the logical semantics to obtain the calculation result;

[0044] The calculation result is assigned to the output control corresponding to the user interface where the business form is located, and the business form is displayed.

[0045] The aforementioned business form data processing method, apparatus, computer equipment, storage medium, and computer program product first read the business form located in the target application to obtain a string representing the business form's operational logic. Lexical analysis is then performed on the string to obtain a syntax tree corresponding to the business form's operational logic. This syntax tree includes multiple leaf nodes, each corresponding to a syntax keyword, thus parsing the string. Next, based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, structured data corresponding to the syntax tree is constructed, converting the string into data that the application can recognize. The structured data is then identified to obtain the logical semantics corresponding to the logical expression, including operational logical semantics and value-taking logical semantics, thus extracting the string logic. Finally, based on the value-taking logical semantics, the target value of the input control corresponding to the user interface where the business form is located is obtained. The obtained target value is then calculated according to the operational logical semantics, yielding the calculation result. This enables calculation of the data in the business form based on its operational logic. This approach simplifies and efficiently porting business forms between different web and mobile platforms, making the use of business forms more flexible. Attached Figure Description

[0046] Figure 1 This is a flowchart illustrating a business form data processing method in one embodiment;

[0047] Figure 2 This is a schematic diagram of a business form in one embodiment;

[0048] Figure 3 This is a flowchart illustrating the business form data processing method in another embodiment;

[0049] Figure 4 This is a structural block diagram of a business form data processing device in one embodiment;

[0050] Figure 5 This is a structural block diagram of a business form data processing device in another embodiment;

[0051] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0053] In one embodiment, such as Figure 1As shown, a method for processing business form data is provided. This application achieves data processing of business forms by executing corresponding actions on the terminal side, effectively improving the flexibility of using business forms. This embodiment illustrates the method by applying it to a terminal. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. It is understood that this method can also be applied to a server, and can also be applied to a system including both a terminal and a server, and is implemented through the interaction between the terminal and the server. The server can be a standalone server or a server cluster composed of multiple servers. In this embodiment, the method includes the following steps:

[0054] Step 102: Read the business form located in the target application to obtain a string representing the operation logic of the business form.

[0055] In this context, a business form refers to a data input and display interface used in a business process. It is used to collect and display data related to the business process. Business forms typically present users with editable fields and options, and provide a set of operations for users to input necessary data, validate it, and submit it. An application refers to a software program running on devices such as computers, mobile phones, and tablets, providing an interactive interface that enables users to perform specific tasks or achieve specific functions. Operational logic refers to symbols and combinations of symbols used to calculate and represent mathematical, logical, or other relationships; it is a mathematical expression used to describe and calculate the relationships between data. In this application, a string representing operational logic refers to a data type used to represent mathematical expressions of relationships between data in a business form; it consists of a series of characters, including letters, numbers, symbols, and spaces.

[0056] Optionally, the operation logic can be four arithmetic operations, and the corresponding string for the four arithmetic operations can be funl={CONTROL=(ab)*c / d+e}, where a, b, c, d and e can represent a specific field or an expression.

[0057] Optionally, the operation logic can be a logical operation, and the corresponding logical operation string can be fun2 = {CONTROL = a AND (b OR c) AND (e > f)}.

[0058] Optionally, the operation logic can be a branch judgment, and the corresponding logical operation string can be fun3={IF aTHEN(CONTROL=b)ELSE(CONTROL=c)END}.

[0059] Optionally, the operation logic can be configured in a custom way. The corresponding logical operation string can be fun4 = {CONTROL = a△b}, where △ is a custom operator, which allows users to define its specific implementation according to their actual business needs.

[0060] Specifically, in response to a user's triggering action on an application located on a webpage or terminal, which is the target application, the business forms in the target application are read to obtain a string composed of characters such as letters, numbers, symbols, and spaces. This string is used to describe and calculate mathematical expressions for the relationships between the business form data.

[0061] In one example, business form A is configured with a business expression, or string, which is Calculate{FEntrySelfS0176=Fqty*Fauxprice}. This string represents a calculation relationship, that is, the value of the corresponding FEntrySelfS0176 control on the user interface is equal to the product of the input values ​​of the Fqty and Fauxprice controls.

[0062] Step 104: Perform lexical analysis on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0063] Lexical analysis is a stage in compiler theory, a process of converting source code into tokens. During lexical analysis, the input character stream is segmented into discrete lexical units, each a grammatically indivisible unit with independent meaning. A syntax tree is a tree-like structure used to represent the grammatical structure of a program or statement. It is generated during the syntax analysis stage to capture the grammatical information and structure of the code. In the syntax tree, each node represents a grammatical component of the code, such as an expression, a statement, or a function. Nodes are connected through parent-child and sibling relationships. The root node represents the entire program or statement, child nodes represent different parts of the program or different components of a statement, and leaf nodes represent the most basic grammatical units in the syntax tree, forming the lowest level of the tree. In this application, each leaf node stores a corresponding syntax keyword.

[0064] Specifically, lexical analysis of the string yields a syntax tree corresponding to the operational logic of the business form. This syntax tree includes multiple leaf nodes. Each leaf node corresponds to a syntax keyword and carries specific information about the lexical unit. For example, consider the following string representing the operational logic of a business form: "a=(b+c)*d". This string contains syntax keywords such as identifiers, operators, and parentheses. Lexical analysis of this string yields the following sequence of lexical units: identifier "a", operator "=", left parenthesis "(", identifier "b", operator "+", identifier "c", right parenthesis ")", operator "*", and identifier "d". Based on this sequence of lexical units, each lexical unit becomes a leaf node when constructing the syntax tree, carrying specific syntax keyword information. The construction of the syntax tree can be performed according to syntax rules. For example, the following syntax rules can be used for the above expressions: Expression = Identifier Operator Expression; Expression = Left Parenthesis Expression Right Parenthesis; Expression = Identifier. Based on these syntax rules and the sequence of lexical units, a corresponding syntax tree can be constructed, where each leaf node corresponds to a lexical unit and carries specific syntax keyword information. Such a syntax tree can be used for subsequent semantic analysis and code generation operations to process and execute the operational logic of business forms.

[0065] Step 106: Construct structured data corresponding to the syntax tree based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application.

[0066] In this context, syntactic keywords are the specific syntactic keyword information carried in the lexical unit corresponding to each leaf node. Applications can support multiple data formats to facilitate data interaction with different systems and applications. Structured data is a form of data organized and stored according to specific rules. It typically uses fixed data structures or formats to represent and describe data. The definition of structured data can take many forms, depending on the type and purpose of the data.

[0067] Specifically, converting a syntax tree into structured data can be done by recursively traversing the nodes of the syntax tree and then constructing the data structure according to the data format supported by the target application based on the type and value of each node.

[0068] In one example, the syntax tree X and the target application Y support multiple data formats, one of which is JSON. Therefore, the data structure is constructed according to the JSON format supported by the target application Y, based on the type and value of each node in the syntax tree X.

[0069] Step 108: Recognize the structured data to obtain the logical semantics corresponding to the string. The logical semantics include operational logical semantics and value retrieval logical semantics.

[0070] Logical semantics refers to the logical meaning or relationship expressed by a string. Logical semantics plays a central role in mathematical logic, providing the foundation for interpreting, reasoning about, and analyzing strings. Operational logical semantics describes the operational logical relationships expressed by a string. For example, the character "+" in a string describes the addition of the characters before and after it. Value retrieval logical semantics describes which specific output control in the business form is used to retrieve a value.

[0071] Optionally, a logical operation string is given by: {IF a THEN(CONTROL=b)ELSE(CONTROL=c)END}. Understandably, the logical semantics of this string include two types: operational logical semantics and value retrieval logical semantics. Specifically, the operational logical semantics are: if the value retrieved from the input control of the business form satisfies condition a, then the control variable is b; otherwise, the control variable is c. The value retrieval logical semantics are: retrieve a value from the input control of the business form and assign either control variable a or control variable b to the output control of the business form. In detail, the structured data transformed from the syntax tree is identified, and the logical meaning or logical relationship expressed by the string corresponding to this structured data is determined. This logical meaning or logical relationship includes the operational logical relationship expressed by the string and the specific output control from which the value is retrieved in the business form.

[0072] In one example, for a business form Y, the structured data X, transformed from the syntax tree x, is identified, and the logical meaning or relationship expressed by the string Q corresponding to this structured data X is determined. Specifically, the identified operational logic semantics describing the logical relationship expressed by a string is to add the values ​​corresponding to controls a and b of the business form Y. The identified value retrieval logic semantics describing which specific output control of the business form takes the value is to retrieve the value from controls a and b of the business form Y.

[0073] Step 110: Based on the value retrieval logic semantics in the logical semantics, obtain the target value of the input control corresponding to the user interface where the business form is located, and perform calculations on the obtained target value according to the operation logic semantics in the logical semantics to obtain the calculation result.

[0074] The target value refers to the value of the input control corresponding to the user interface of the business form. The calculation result refers to the numerical result obtained after performing the corresponding calculation on the target value of the input control corresponding to the user interface of the business form according to the calculation logic expressed by its string.

[0075] Specifically, such as Figure 2 As shown, the user interface 202 of the business form includes input controls 204, 206, and output controls 208. According to the value retrieval logic semantics, the value of the corresponding input control 204 in the user interface 202 of the business form is retrieved to obtain 10, and the value of input control 206 is retrieved to obtain 50. Then, according to the operation logic semantics, the retrieved values ​​are processed accordingly, and the final numerical result, 500, is the calculation result.

[0076] In one example, the values ​​of the Fqty and Fauxprice controls on the user interface are retrieved through the user interface data accessor, multiplied together, and the resulting value is then assigned to the FEntrySelfS0176 control. Understandably, through recursion of expressions, the expression on the right-hand side of the equals sign can be defined infinitely. For example, FEntrySelfS0176 = (A+B) / C+D*E / F, a feature not available in traditional methods such as regular expressions.

[0077] Step 112: Assign the calculation result to the output control corresponding to the user interface where the business form is located, and display the business form.

[0078] Among them, such as Figure 2 As shown, the output control 208 is a control in the business form used to display the final numerical calculation result. It can be understood that the control in this application refers to the element used to collect and process user input data.

[0079] Specifically, after obtaining the final calculation result of 500, the result is assigned to the output control 208 in the business form, ultimately displaying the result 500 on the output control. Through this approach, this application provides a universal form logic control implementation method for multiple platforms. The expression parsing part can be implemented using various open-source middleware, such as Antlr 4 (a powerful parser generator that can generate parsers for syntax analysis based on defined syntax rules). The same code can be used on desktop and web platforms, supporting mainstream development languages ​​such as Java (an object-oriented programming language) and Python (a high-level, interpreted, object-oriented programming language). The business form data processing method in this application makes it easy to port to web or mobile platforms and other languages, ensuring unified standardization and universality in business form parsing, greatly improving readability and maintainability. Furthermore, by defining expression parsing rules and implementing custom operators, complex formula logic can be supported, such as arithmetic operations, logical operations, branching judgments, and custom operators.

[0080] In one embodiment, the syntax keywords corresponding to each leaf node in the syntax tree are traversed to determine the syntax keywords reached; the application format that supports the recognition of the target application is obtained; the structured sub-data corresponding to each syntax keyword is determined according to the application format recognized by the target application; after the traversal is completed, the structured data corresponding to the syntax tree is determined according to the structured sub-data corresponding to each syntax keyword.

[0081] Specifically, the algorithm for traversing the syntax tree visits each leaf node in turn to determine the syntax key corresponding to each leaf node. This can be achieved using algorithms such as depth-first search or breadth-first search. An application format dictionary is constructed, containing information about the application formats supported by the target application. This dictionary can include format specifications for common applications, such as JSON and XML. Based on the syntax keys obtained through traversal, the corresponding structured sub-data is searched in the application format dictionary. This sub-data can be a predefined data structure or template used to represent the specific data form of the syntax key. After traversal, the corresponding structured data is constructed based on the structured sub-data corresponding to each syntax key. This can be a dataset containing all key structured sub-data, represented using a tree structure or other data structures. Through this approach, each leaf node in the original syntax tree can be mapped to structured data corresponding to the target application, thereby achieving the ability to transform and extend the syntax tree and recognize extended applications.

[0082] By converting each syntax keyword into corresponding structured sub-data based on the application format that the target application can recognize, the final result is structured data corresponding to all syntax keywords in the syntax tree, thus avoiding the omission of syntax keywords.

[0083] In one embodiment, a training grammar classification tree and various classification features are obtained; the character sets of sample words corresponding to multiple sample strings are obtained, and each character set of sample words corresponds to a grammar keyword; based on the character sets of sample words corresponding to multiple sample strings, the multiple sample strings are classified layer by layer to obtain the classification result for each layer; according to the classification result corresponding to the corresponding non-leaf node in the corresponding layer, the classification feature corresponding to the corresponding node is selected from various classification features; the child nodes connected to the corresponding nodes in the training classification tree are constructed until a preset stopping condition is reached, thus obtaining a preset grammar classification tree for lexical analysis of strings.

[0084] Specifically, the training process for a pre-defined grammar classification tree includes at least the following steps: First, obtaining the grammar classification tree and classification features to be trained. This involves acquiring a grammar classification tree to define the grammatical structure of strings. Simultaneously, various classification features need to be collected, which are associated with grammatical keywords. These features can include words, characters, parts of speech, etc. Second, obtaining sample strings and sample word character sets. To train the classification tree, multiple sample strings are needed. For each sample string, it needs to be split into words, and a character set corresponding to each word needs to be established. Thus, each sample string will have a corresponding sample word character set. Third, layer-by-layer classification and classification results. This involves classifying the sample strings layer-by-layer based on the sample word character sets. Each layer contains multiple classification nodes, and the sample strings are assigned to the corresponding classification nodes according to the features of the sample word character sets. The result of layer-by-layer classification is the classification result obtained at each layer. Fourth, selecting classification features and constructing child nodes. This involves selecting the classification features corresponding to each classification node from a variety of classification features based on the classification results of each non-leaf node. Then, child nodes connected to selected classification features are constructed for the preset classification tree, thus forming a hierarchical structure. This process continues until a preset stopping condition is reached. The fifth step is to construct a preset syntax classification tree, specifically by connecting the child nodes of each node to ultimately build a preset syntax classification tree for string lexical analysis. Based on the structure of the preset classification tree, lexical analysis can be performed on the input string, decomposing it into lexical units and classifying them. Understandably, this application classifies and constructs a preset classification tree layer by layer using the word character set and classification features of the sample string for string lexical analysis.

[0085] Because this application trains the grammar classification tree by using the character sets of sample words corresponding to each of the multiple sample strings before obtaining the preset grammar classification tree, it can classify the input data according to specific grammar rules, such as filtering out data that does not meet the requirements or extracting data of a specific type.

[0086] In one embodiment, the string is split by a delimiter to obtain multiple word characters; a preset syntax classification tree for lexical analysis of the string is obtained, and each non-leaf node of the preset syntax classification tree corresponds to a classification feature; based on the preset syntax classification tree and the multiple word characters, the target leaf node to which each word character is classified is determined; based on the syntax keywords corresponding to each target leaf node, the syntax tree corresponding to the operation logic of the business form is obtained.

[0087] Specifically, the string is split using delimiters to obtain multiple word characters. This can be achieved using string splitting functions or regular expressions to segment a long string into multiple word characters according to a specified delimiter. A preset syntax classification tree is obtained for lexical analysis of the string. The preset syntax classification tree is a tree-like data structure where each non-leaf node represents a classification feature, such as variable, operator, or function. This classification tree can be defined and trained according to requirements and specific business scenarios. Each non-leaf node in the preset syntax classification tree corresponds to a classification feature. This means that each non-leaf node has a specific syntax category, such as "variable," "operator," or "function." These classification features can be defined and trained according to specific business needs. Based on the preset syntax classification tree and multiple word characters, the target leaf node to which each word character is classified is determined. By traversing the preset syntax classification tree and comparing each word character with a classification node, the target leaf node to which each word character is classified is determined. Based on the syntax keywords corresponding to each target leaf node, the syntax tree corresponding to the business form's operation logic is obtained. Each target leaf node has an associated syntax keyword, such as "if," "else," or "while." Based on these keywords, a syntax tree of computational logic can be constructed for further processing and analysis of the computational logic of business forms.

[0088] Because the input string can be categorized and parsed according to preset syntax rules, a syntax tree suitable for specific business needs can be obtained. This facilitates subsequent tasks such as semantic analysis, code generation, and business logic processing.

[0089] In one embodiment, the current node is determined starting from the root node of the preset grammar classification tree, and the target child node to which each word character is classified is determined based on the classification features corresponding to the current node and the multiple word characters corresponding to the string. The target child node is a child node of the current node. The target child node is used as the new current node, and the process returns to the step of determining the target child node to which each word character is classified based on the classification features corresponding to the current node and the multiple word characters corresponding to the string, and continues until a leaf node is reached. The reached leaf node is used as the target leaf node to which each word character is classified.

[0090] Specifically, a pre-defined grammar classification tree is used to determine the string's classification. First, starting from the root node, the current node is determined. Based on the classification features corresponding to the current node and the multiple word characters corresponding to the string, the target child node to which each word character should be classified is determined. The target child node is a child node of the current node. Then, the target child node is used as the new current node, and the process returns to the previous steps. Based on the classification features corresponding to the current node and the multiple word characters corresponding to the string, the target child node to which each word character should be classified is determined. This process is repeated until a leaf node is reached. Finally, the reached leaf node is the target leaf node to which each word character should be classified.

[0091] By classifying strings according to a pre-defined grammar classification tree, the methods and processes of classification are enriched. Furthermore, the pre-defined grammar classification tree categorizes strings into different classes based on grammatical rules, resulting in highly structured classification results that are easy to understand and process. Moreover, the pre-defined grammar classification tree in this application can be modified and expanded according to actual needs, facilitating adjustments within the classification tree to adapt to different classification requirements. Furthermore, the pre-defined grammar classification tree in this application can be combined with other natural language processing techniques, such as part-of-speech tagging and entity recognition, to achieve more complex classification tasks. This improves classification accuracy and the richness of applications.

[0092] In one embodiment, in response to a triggering operation on a business form, a business form sent by another terminal or other application is received.

[0093] Specifically, in response to a user's triggering action on a business form within the application, it receives business forms from other terminals or other applications.

[0094] In one example, in response to a user's trigger action W on a business form in application A located on mobile terminal X, a business form is received from application B located on mobile terminal X.

[0095] In another example, in response to a user's trigger action M on a business form in application A located on mobile terminal X, a business form is received from application A located on mobile terminal Y.

[0096] In one embodiment, such as Figure 3 As shown, Figure 3 Here is a flowchart illustrating a business form data processing method in another embodiment, including the following steps:

[0097] Step 302: Obtain the training grammar classification tree and various classification features; obtain the character sets of sample words corresponding to each of the multiple sample strings, with each character set corresponding to a grammar keyword; classify the multiple sample strings layer by layer based on the character sets of sample words corresponding to each of the multiple sample strings, and obtain the classification results for each layer; select the classification features corresponding to the corresponding nodes from the various classification features according to the classification results corresponding to the corresponding non-leaf nodes in the corresponding layers; construct the child nodes connected to the corresponding nodes in the training classification tree until the preset stopping condition is met, and obtain the preset grammar classification tree used for lexical analysis of the strings;

[0098] Step 304: In response to a trigger operation on a business form, receive a business form sent by another terminal or other application;

[0099] Step 306: Read the business form located in the target application to obtain a string representing the calculation logic of the business form;

[0100] Step 308: Segment the string using a delimiter to obtain multiple word characters; obtain a preset syntax classification tree for lexical analysis of the string, where each non-leaf node of the preset syntax classification tree corresponds to a classification feature; determine the current node from the root node of the preset syntax classification tree, and determine the target child node to which each word character is classified based on the classification feature corresponding to the current node and the multiple word characters corresponding to the string, where the target child node is a child node of the current node; use the target child node as the new current node, and return to the step of determining the target child node to which each word character is classified based on the classification feature corresponding to the current node and the multiple word characters corresponding to the string, and continue execution until a leaf node is reached; use the reached leaf node as the target leaf node to which each word character is classified; obtain the syntax tree corresponding to the operation logic of the business form based on the syntax keywords corresponding to each target leaf node;

[0101] Step 310: Traverse the syntax keywords corresponding to each leaf node in the syntax tree to determine the syntax keywords traversed; obtain the application format that supports the target application's recognition; determine the structured sub-data corresponding to each syntax keyword based on the application format recognized by the target application; after the traversal is completed, determine the structured data corresponding to the syntax tree based on the structured sub-data corresponding to each syntax keyword.

[0102] Step 312: Recognize the structured data to obtain the logical semantics corresponding to the strings. The logical semantics include operational logical semantics and value retrieval logical semantics.

[0103] Step 314: Based on the value retrieval logic semantics in the logical semantics, obtain the target value of the input control corresponding to the user interface where the business form is located; based on the operation logic semantics in the logical semantics, perform an operation on the obtained target value to obtain the operation result.

[0104] Step 316: Assign the calculation result to the output control corresponding to the user interface where the business form is located, and display the business form.

[0105] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0106] Based on the same inventive concept, this application also provides a business form data processing apparatus for implementing the business form data processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more business form data processing apparatus embodiments provided below can be found in the limitations of the business form data processing method described above, and will not be repeated here.

[0107] In one embodiment, such as Figure 4 As shown, a business form data processing device 400 is provided, including: a reading module 402, an analysis module 404, a construction module 406, a recognition module 408, a calculation module 410, and a display module 412, wherein:

[0108] The reading module 402 is used to read the business forms located in the target application and obtain a string representing the calculation logic of the business forms;

[0109] Analysis module 404 is used to perform lexical analysis on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0110] Module 406 is used to construct structured data corresponding to the syntax tree based on the syntax keywords corresponding to each leaf node in the syntax tree and the data format supported by the target application.

[0111] The recognition module 408 is used to recognize structured data and obtain the logical semantics corresponding to the string. The logical semantics include operational logical semantics and value retrieval logical semantics.

[0112] The calculation module 410 is used to obtain the target value of the input control corresponding to the user interface where the business form is located according to the value retrieval logic semantics in the logical semantics, and to perform calculations on the obtained target value according to the calculation logic semantics in the logical semantics to obtain the calculation result.

[0113] Display module 412 is used to assign the calculation result to the output control corresponding to the user interface where the business form is located, and to display the business form.

[0114] In one embodiment, the construction module 406 is used to traverse the syntax keywords corresponding to each leaf node in the syntax tree, determine the syntax keywords traversed to; obtain the application format that supports the recognition of the target application; determine the structured sub-data corresponding to each syntax keyword according to the application format recognized by the target application; and determine the structured data corresponding to the syntax tree according to the structured sub-data corresponding to each syntax keyword after the traversal is completed.

[0115] In one embodiment, the analysis module 404 is used to split the string by a delimiter to obtain multiple word characters; obtain a preset syntax classification tree for lexical analysis of the string, wherein each non-leaf node of the preset syntax classification tree corresponds to a classification feature; determine the target leaf node to which each word character is classified based on the preset syntax classification tree and the multiple word characters; and obtain the syntax tree corresponding to the operation logic of the business form based on the syntax keywords corresponding to each target leaf node.

[0116] In one embodiment, the analysis module 404 is used to determine the current node starting from the root node of the preset grammar classification tree, and to determine the target child node to which each word character is classified based on the classification features corresponding to the current node and the multiple word characters corresponding to the string. The target child node is a child node of the current node. The target child node is used as the new current node, and the process returns to the step of determining the target child node to which each word character is classified based on the classification features corresponding to the current node and the multiple word characters corresponding to the string, and continues until a leaf node is reached. The reached leaf node is used as the target leaf node to which each word character is classified.

[0117] In one embodiment, the business form data processing device 400 further includes a training module 414, used to acquire a training syntax classification tree and various classification features; acquire the character sets of sample words corresponding to each of the multiple sample strings, each character set of sample words corresponding to a syntax keyword; classify the multiple sample strings layer by layer based on the character sets of sample words corresponding to each of the multiple sample strings, and obtain the classification result for each layer; select the classification feature corresponding to the corresponding node from the various classification features according to the classification result corresponding to the corresponding non-leaf node in the corresponding layer; construct the child nodes connected to the corresponding nodes in the training classification tree until a preset stopping condition is reached, and obtain a preset syntax classification tree for lexical analysis of the strings.

[0118] In one embodiment, the business form data processing apparatus 400 further includes a receiving module 416, which is used to receive business forms sent by other terminals or other applications in response to a trigger operation on a business form.

[0119] In another embodiment, such as Figure 5 As shown, Figure 5 The following is a structural block diagram of a business form data processing device in another embodiment, including: a reading module 402, an analysis module 404, a construction module 406, a recognition module 408, a calculation module 410, and a display module 412. The business form data processing device 400 further includes a training module 414 and a receiving module 416.

[0120] The training module 414 is used to obtain the training grammar classification tree and various classification features; obtain the character sets of sample words corresponding to each of the multiple sample strings, with each character set corresponding to a grammar keyword; classify the multiple sample strings layer by layer based on the character sets of sample words corresponding to each of the multiple sample strings, and obtain the classification results for each layer; select the classification features corresponding to the corresponding nodes from various classification features according to the classification results corresponding to the corresponding non-leaf nodes in the corresponding layers; construct the child nodes connected to the corresponding nodes in the training classification tree until the preset stopping condition is met, and obtain the preset grammar classification tree used for lexical analysis of the strings.

[0121] The receiving module 416 is used to receive business forms sent by other terminals or other applications in response to a trigger operation on a business form.

[0122] Each module in the aforementioned business form data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0123] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data related to business form data processing. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a business form data processing method.

[0124] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0125] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0126] Read the business forms located in the target application and obtain a string representing the calculation logic of the business forms;

[0127] Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0128] Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree;

[0129] Structured data is identified to obtain the logical semantics corresponding to the strings. The logical semantics include operational logical semantics and value retrieval logical semantics.

[0130] Based on the value retrieval logic semantics, obtain the target value of the input control corresponding to the user interface where the business form is located; based on the operation logic semantics, perform operations on the obtained target value to obtain the operation result.

[0131] The calculation result is assigned to the output control corresponding to the business form in the user interface, and the business form is displayed.

[0132] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0133] Traverse the syntax key corresponding to each leaf node in the syntax tree to determine the syntax key that has been traversed;

[0134] Obtain the application format that supports the target application's recognition;

[0135] Based on the application format identified by the target application, determine the structured sub-data corresponding to each grammatical keyword;

[0136] After the traversal is complete, the structured data corresponding to the syntax tree is determined based on the structured sub-data corresponding to each syntax key.

[0137] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0138] Obtain the training grammar classification tree and various classification features; obtain the character sets of sample words corresponding to multiple sample strings, each character set corresponding to a grammar keyword; classify the multiple sample strings layer by layer based on the character sets of sample words corresponding to each sample string, obtaining the classification result for each layer; select the classification feature corresponding to the corresponding node from various classification features according to the classification result corresponding to the corresponding non-leaf node in the corresponding layer; construct the child nodes connected to the corresponding nodes in the training classification tree until the preset stopping condition is met, obtaining the preset grammar classification tree used for lexical analysis of the string.

[0139] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0140] The string is split using a delimiter to obtain multiple word characters; a preset syntax classification tree for lexical analysis of the string is obtained, where each non-leaf node of the preset syntax classification tree corresponds to a classification feature; based on the preset syntax classification tree and the multiple word characters, the target leaf node to which each word character is classified is determined; and based on the syntax keywords corresponding to each target leaf node, the syntax tree corresponding to the operation logic of the business form is obtained.

[0141] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0142] Starting from the root node of the preset grammar classification tree, determine the current node. Based on the classification features corresponding to the current node and the multiple word characters corresponding to the string, determine the target child node to which each word character is classified. The target child node is a child node of the current node. Use the target child node as the new current node and return to the step of determining the target child node to which each word character is classified based on the classification features corresponding to the current node and the multiple word characters corresponding to the string, and continue execution until a leaf node is reached. Use the reached leaf node as the target leaf node to which each word character is classified.

[0143] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0144] In response to a triggered action on a business form, it receives business forms sent from other terminals or other applications.

[0145] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0146] Read the business forms located in the target application and obtain a string representing the calculation logic of the business forms;

[0147] Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0148] Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree;

[0149] Structured data is identified to obtain the logical semantics corresponding to the strings. The logical semantics include operational logical semantics and value retrieval logical semantics.

[0150] Based on the value retrieval logic semantics, obtain the target value of the input control corresponding to the user interface where the business form is located; based on the operation logic semantics, perform operations on the obtained target value to obtain the operation result.

[0151] The calculation result is assigned to the output control corresponding to the business form in the user interface, and the business form is displayed.

[0152] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0153] Read the business forms located in the target application and obtain a string representing the calculation logic of the business forms;

[0154] Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword.

[0155] Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree;

[0156] Structured data is identified to obtain the logical semantics corresponding to the strings. The logical semantics include operational logical semantics and value retrieval logical semantics.

[0157] Based on the value retrieval logic semantics, obtain the target value of the input control corresponding to the user interface where the business form is located; based on the operation logic semantics, perform operations on the obtained target value to obtain the operation result.

[0158] The calculation result is assigned to the output control corresponding to the business form in the user interface, and the business form is displayed.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0160] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0161] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0162] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for processing business form data, characterized in that, The method includes: Read the business form located in the target application and obtain a string representing the operation logic of the business form; Lexical analysis is performed on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword. Based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application, construct structured data corresponding to the syntax tree; The structured data is identified to obtain the logical semantics corresponding to the string, and the logical semantics include operational logical semantics and value retrieval logical semantics; Based on the value retrieval logic semantics in the logical semantics, the target value of the input control corresponding to the user interface where the business form is located is obtained, and the obtained target value is calculated based on the operation logic semantics in the logical semantics to obtain the calculation result; The calculation result is assigned to the output control corresponding to the user interface where the business form is located, and the business form is displayed.

2. The method according to claim 1, characterized in that, The step of constructing structured data corresponding to the syntax tree based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application includes: The syntax key corresponding to each leaf node in the syntax tree is traversed to determine the syntax key reached during the traversal. Obtain the application format that supports the identification of the target application; Based on the application format identified by the target application, determine the structured sub-data corresponding to each of the grammatical keywords; After the traversal is completed, the structured data corresponding to the syntax tree is determined based on the structured sub-data corresponding to each syntax keyword.

3. The method according to claim 1, characterized in that, The step of performing lexical analysis on the string to obtain the syntax tree corresponding to the operation logic of the business form includes: The string is split using a delimiter to obtain multiple word characters; Obtain a preset syntax classification tree for lexical analysis of strings, wherein each non-leaf node of the preset syntax classification tree corresponds to a classification feature; Based on the preset grammar classification tree and the multiple word characters, determine the target leaf node to which each word character is classified; Based on the syntax keywords corresponding to each of the target leaf nodes, the syntax tree corresponding to the operation logic of the business form is obtained.

4. The method according to claim 3, characterized in that, Before obtaining the preset syntax classification tree for lexical analysis of the string, the method further includes: Obtain the syntax classification tree to be trained and various classification features; Obtain the character set of sample words corresponding to each of the multiple sample strings, and each sample word character set corresponds to a grammatical keyword; Based on the character set of the sample words corresponding to each of the multiple sample strings, the multiple sample strings are classified layer by layer to obtain the classification result for each layer. Based on the classification results corresponding to the corresponding non-leaf nodes in the corresponding layer, the classification features corresponding to the corresponding nodes are selected from the multiple classification features; Construct child nodes connected to the corresponding nodes in the training grammar classification tree until a preset stopping condition is met, thus obtaining the preset grammar classification tree used for lexical analysis of strings.

5. The method according to claim 3, characterized in that, The step of determining the target leaf node to which each word character is classified based on the preset grammar classification tree and the multiple word characters includes: The current node is determined from the root node of the preset grammar classification tree, and the target child node to which each word character is classified is determined according to the classification features corresponding to the current node and the multiple word characters corresponding to the string. The target child node is a child node of the current node. The target child node is used as the new current node, and the process continues to the step of determining the target child node to which each word character is classified based on the classification features corresponding to the current node and the multiple word characters corresponding to the string, until the leaf node is reached. The reached leaf node is taken as the target leaf node to which each of the aforementioned word characters is classified.

6. The method according to claim 1, characterized in that, Before reading the business forms located in the target application, the following is also included: In response to a triggered action on a business form, it receives business forms sent from other terminals or other applications.

7. A business form data processing device, characterized in that, The device includes: The reading module is used to read business forms located in the target application and obtain a string representing the calculation logic of the business forms; The analysis module is used to perform lexical analysis on the string to obtain the syntax tree corresponding to the operation logic of the business form. The syntax tree includes multiple leaf nodes, and each leaf node corresponds to a syntax keyword. The construction module is used to construct structured data corresponding to the syntax tree based on the syntax keywords corresponding to each leaf node in the syntax tree and the data formats supported by the target application. The recognition module is used to recognize the structured data and obtain the logical semantics corresponding to the string. The logical semantics include operational logical semantics and value retrieval logical semantics. The calculation module is used to obtain the target value of the input control corresponding to the user interface where the business form is located according to the value retrieval logic semantics in the logical semantics, and to perform calculations on the obtained target value according to the calculation logic semantics in the logical semantics to obtain the calculation result; The display module is used to assign the calculation result to the output control corresponding to the user interface where the business form is located, and to display the business form.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Production information processing method, device, system and equipment and readable storage medium

    CN111784087A

  • Form processing method and device, terminal and medium

    CN111857712A