CN117270838B - Method, device, equipment and medium for generating universal formula script - Google Patents

Method, device, equipment and medium for generating universal formula script Download PDF

Info

Publication number
CN117270838B
CN117270838B CN202311559211.4A CN202311559211A CN117270838B CN 117270838 B CN117270838 B CN 117270838B CN 202311559211 A CN202311559211 A CN 202311559211A CN 117270838 B CN117270838 B CN 117270838B
Authority
CN
China
Prior art keywords
formula
code
script
original
format
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.)
Active
Application number
CN202311559211.4A
Other languages
Chinese (zh)
Other versions
CN117270838A (en
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.)
Taiping Finance Technology Services Shanghai Co ltd
Original Assignee
Taiping Finance Technology Services 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 Taiping Finance Technology Services Shanghai Co ltd filed Critical Taiping Finance Technology Services Shanghai Co ltd
Priority to CN202311559211.4A priority Critical patent/CN117270838B/en
Publication of CN117270838A publication Critical patent/CN117270838A/en
Application granted granted Critical
Publication of CN117270838B publication Critical patent/CN117270838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for generating a universal formula script. The method comprises the following steps: responding to a formula editing instruction of a user in a visual formula editing platform, and generating an original formula code in a JS format; calling a matched XML parsing component to parse according to the types of the JS formula elements contained in the original formula code, so as to obtain an intermediate formula code in an XML format; and in the intermediate formula code, each formula factor is identified, and according to the type of the formula factor, a matched JAVA parsing component is called for parsing processing to obtain a general formula script in a JAVA format. By the technical scheme, the generation of the universal formula script based on the original formula code can be realized, and the universal formula script can be visually displayed in a display page written by using any programming language.

Description

Method, device, equipment and medium for generating universal formula script
Technical Field
The present invention relates to the field of code format conversion, and in particular, to a method, an apparatus, a device, and a medium for generating a universal formula script.
Background
The low code is a visual application development method, uses less code to deliver an application program at a faster speed, and automates the code which a programmer does not want to develop. Under the digitized transformation wave of enterprises, super-huge new business scene application is required. The low-code technology can relieve and even solve the contradiction between huge market demands and supply and demand relations caused by traditional development productivity, and is beneficial to the application and development market, and finally becomes a necessary product under the trend of cost reduction and synergy in the digital transformation process.
At present, the visualized online formula programming using the low-code technology is realized by using the MatchML+flash technology, but the official representation of MatchML+flash is at the end of 2020, so that the web page end service update is completely stopped, and meanwhile, the application of Flash on a browser supported by MatchML+flash is completely removed. Therefore, the existing original formula code obtained by programming the visualized online formula using the low-code technology cannot support the formula matched with the original formula code to be visualized and displayed on a browser such as Microsoft, google and the like.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for generating a universal formula script, which can solve the problem that an original formula code generated by the prior art cannot support the visual display of formulas in various display interfaces.
In a first aspect, an embodiment of the present invention provides a method for generating a universal formula script, where the method includes:
responding to a formula editing instruction of a user in a visual formula editing platform, and generating an original formula code in a JS format;
calling a matched XML parsing component to parse according to the types of the JS formula elements contained in the original formula code, so as to obtain an intermediate formula code in an XML format;
identifying each formula factor in the intermediate formula code, and calling a matched JAVA parsing component to parse according to the type of the formula factor to obtain a general formula script in a JAVA format;
the universal formula script is used for carrying out visual display in a display page written by using any programming language.
In a second aspect, an embodiment of the present invention provides a device for generating a universal formula script, where the device includes:
the original code acquisition module is used for responding to a formula editing instruction of a user in the visual formula editing platform to generate an original formula code in a JS format;
the intermediate code acquisition module is used for calling the matched XML analysis component to carry out analysis processing according to the types of the JS formula elements contained in the original formula code to obtain an intermediate formula code in an XML format;
The general formula script acquisition module is used for identifying each formula factor in the intermediate formula code, and calling a matched JAVA analysis component to carry out analysis processing according to the type of the formula factor to obtain a general formula script in a JAVA format;
the universal formula script is used for carrying out visual display in a display page written by using any programming language.
In a third aspect, the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of generating a universal formula script according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where computer instructions are stored, where the computer instructions are configured to cause a processor to execute a method for generating a universal formula script according to any embodiment of the present invention.
According to the technical scheme, the original formula code of the JS format is generated by responding to the formula editing instruction of the visual formula editing platform of the user, then the matched XML parsing component is called to parse according to the types of the JS formula elements contained in the original formula code to obtain the intermediate formula code of the XML format, finally each formula factor is identified in the intermediate formula code, and the matched JAVA parsing component is called to parse according to the types of the formula factors to obtain the general formula script of the JAVA format, so that the problem that the original formula code generated in the prior art cannot support the formula to be visually displayed in various display interfaces is solved, the generation of the general formula script based on the original formula code is realized, and the general formula script can be visually displayed in a display page written by using any programming language.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating a universal formula script according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for generating a universal formula script according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a generating device of a universal formula script according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a method for generating a universal formula script according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for generating a universal formula script according to an embodiment of the present invention, where the method may be performed by a device for generating a universal formula script, and the device for generating a universal formula script may be implemented in hardware and/or software, and the device for generating a universal formula script may be configured in a terminal or a server having a function for generating a universal formula script, where the method is applicable to a case where a universal formula script in JAVA format is obtained based on original formula codes in JS format.
As shown in fig. 1, the method includes:
s110, responding to a formula editing instruction of a user in a visual formula editing platform, and generating an original formula code in a JS format.
The visual formula editing platform can be a visual formula programming tool library with a formula generation function; illustratively, the visual formula editing platform may be Google block ly; furthermore, the Google block is a visual programming tool library based on a webpage, can be used for constructing a JavaScript library of a visual programming editor, is compatible with various types of browsers, and can lead out Javascript, python, PHP, lua, dart and other various original formula codes according to a formula edited by a user.
In this embodiment, the Google block is used as a visual formula editing platform, so that the generated original formula code is convenient to output, the generation of the original formula code can be satisfied by operating the control in the Google block, and the correctness of the formula is not required to be verified by relying on a complete business process.
The JS format is JavaScript, and is a lightweight, interpreted or just-in-time compiling programming language with function priority. Although it is a scripting language for developing web pages, it is also used in many non-browser environments where JS is based on a prototype-programmed, multi-paradigm dynamic scripting language and supports object-oriented, command-style, declarative, functional programming paradigms.
Wherein, responding to the formula editing instruction of the user on the visual formula editing platform, generating the original formula code in JS format, comprising: responding to a formula editing instruction of a user in a visual formula editing platform, and identifying each formula editing tool selected and configured in a visual formula editing interface by the user; and generating an original formula code in the JS format according to the identification result.
Specifically, the formula editing tool includes: a development code tool block configured in the formula editing platform that can be used to generate a specific formula; illustratively, the development code tool block may include: variable code blocks, operator tool blocks, conditional logic tool blocks, squaring tool blocks, text tool blocks, etc.; further, the user can use or activate the development code tool blocks through operations such as formula editing instructions or mouse dragging and the like to obtain mathematical relations corresponding to the tool blocks, so that a formula matched with the user instructions is generated.
In this embodiment, the display interface of the formula editing platform may display a formula configured by the user and having a detailed mathematical relationship, for example: f3 And correspondingly, the background operation part of the formula editing platform can generate an original tool code matched with the formula, namely, on the basis of the configuration, the formula editing platform recognizes a specific operation or formula editing command corresponding to the F3=F1+F2+G generated by the user, and the background operation part automatically generates an original formula code in JS format matched with the formula F3=F1+F2+G.
S120, calling a matched XML parsing component to parse according to the types of the JS formula elements contained in the original formula code, and obtaining an intermediate formula code in an XML format.
Wherein, the types of the JS formula element include: block type, field type, value type, shadow type, and next type; further, each type of the different JS formula element corresponds to at least one of a different element attribute, attribute name, and sub-element.
The XML (Extensible Markup Language, extensible markup complaint) format is a subset of standard general markup language, can be used for marking data and defining data types, is a source language allowing a user to define own markup language, and has the advantages of good extensibility of the standard general markup language, separation of content and form, compliance with strict grammar requirements, good value retention and the like.
In this embodiment, according to the types of the JS formula elements included in the original formula code, a matched XML parsing component is called to parse, so as to obtain an intermediate formula code in XML format, which includes:
identifying a working area starting character string and a working area ending character string in the original formula code in a keyword positioning mode; locating a working area code in the original formula code according to the working area start character string and the working area end character string; sequentially acquiring a code row in the working area code; if the code behavior is determined to contain the target code line of the JS formula element, calling a matched XML parsing component to parse according to the type of the JS formula element contained in the target code line to obtain a converted code line, and adding the converted code line into an intermediate formula code template; if the code line does not contain any JS formula element, directly adding the code line into an intermediate formula code template; and returning to execute the operation of sequentially acquiring one code line in the working area code until the processing of all the code lines is completed, and determining an intermediate formula code template at the end of the circulation as an intermediate formula code.
Specifically, the identifying, by means of keyword positioning, the working area start character string and the working area end character string in the original formula code includes:
identifying element names in a preset JS formula element list in an original formula code; further, the workspace code is a code row carrying an element name or a code in the JS formula element list, and the start character string and the end character string of the element name are all the same, for example: < block type= 'variables_set' >/block > is a complete line of work area code with block element name.
On the basis of the steps, the element attribute corresponding to the working area code can be identified by identifying the element name in the working area code, and then the matched XML analysis component is called by the element attribute to carry out analysis processing, so that a converted code line is obtained; it should be noted that the format of the transcoded line is not described as XML format.
Specifically, if it is determined that the code behavior includes an object code line of a JS formula element, according to a type of the JS formula element included in the object code line, a matched XML parsing component is called to parse, so as to obtain a converted code line, where the method includes:
Inquiring a pre-established JS formula element list, and detecting whether the code line contains a target JS formula element contained in the JS formula element list; if yes, determining the code behavior object code line, inquiring the mapping relation between JS formula elements and XML analysis components, obtaining an XML analysis component of a target matched with the object JS formula elements to analyze the object code line to obtain converted code lines, traversing and converting all code lines in an original formula code in sequence until all code lines are processed completely, and determining an intermediate formula code template when the circulation is ended as an intermediate formula code.
The pre-established JS formula element list is shown in table 1:
the XML analysis component is a preset XML format conversion component which is used for converting JS format codes into XML format codes; further, the said
In this embodiment, optionally, according to the types of the JS formula elements included in the original formula code, a matched XML parsing component is called to parse, and further includes:
if the fact that the current original formula code does not contain any target JS formula element contained in the pre-established JS formula element list is detected, an error prompt is generated to a display device for display.
S130, identifying each formula factor in the intermediate formula code, and calling a matched JAVA parsing component to parse according to the type of the formula factor to obtain a general formula script in a JAVA format.
The universal formula script is used for carrying out visual display in a display page written by using any programming language.
Wherein the formula factor is a code corresponding to an individual number or an individual number symbol in the formula; illustratively, in the formula f3=f1+f2+g, the code corresponding to the first "+" in the intermediate formula code is a complete formula factor.
The Java format is a programming language format and is used for representing Java software and components thereof, including Java runtime environment, java virtual machine and plug-in. The Java format has some features common to most programming languages and is deliberately designed for use in the distributed environment of the internet. The Java format has a form and feel similar to the C++ language, but is easier to use than the C++ language and uses an object oriented approach throughout programming.
According to the technical scheme, the original formula code of the JS format is generated by responding to the formula editing instruction of the visual formula editing platform of the user, then the matched XML parsing component is called to parse according to the types of the JS formula elements contained in the original formula code to obtain the intermediate formula code of the XML format, finally each formula factor is identified in the intermediate formula code, and the matched JAVA parsing component is called to parse according to the types of the formula factors to obtain the general formula script of the JAVA format, so that the problem that the original formula code generated in the prior art cannot support the formula to be visually displayed in various display interfaces is solved, the generation of the general formula script based on the original formula code is realized, and the general formula script can be visually displayed in a display page written by using any programming language.
Example two
Fig. 2 is a flowchart of a method for generating a universal formula script according to a second embodiment of the present invention, where the method for calling a matching JAVA parsing component to parse according to the type of formula factor is specifically refined according to the embodiment described above.
As shown in fig. 2, the method includes:
s210, responding to a formula editing instruction of a user in a visual formula editing platform, and generating an original formula code in a JS format.
S220, calling a matched XML parsing component to parse according to the types of the JS formula elements contained in the original formula code, and obtaining an intermediate formula code in an XML format.
S230, identifying each formula factor in the intermediate formula code.
Specifically, in the intermediate formula code, identifying each formula factor includes:
sequentially acquiring a current code row from the intermediate formula code; inquiring a pre-established root element list, and judging whether a target root element contained in the root element list exists in the current code line or not; if a target root element exists in the current code line, obtaining an equation node of the code line through the target root element, and decomposing the current code line into formula elements based on the position of the equation node; verifying whether each formula element only contains one formula factor, and when the target formula element contains a plurality of formula factors, calling a preconfigured formula analysis component to analyze the target formula element to obtain each new analyzed formula element, and continuing to verify until all the formula factors contained in the current code row are identified; and returning to execute the operation of sequentially acquiring one current code line in the intermediate formula code until the processing of all code lines in the intermediate formula code is completed.
Wherein the root element list is shown in table 2:
table 2: root element list
In this embodiment, the type of the parsing component of the code line matching the root element may be determined by the name of the root element; further, the mapping relationship between the name of the root element and the parsing component is shown in table 3:
table 3: mapping relation between names of root elements and parsing components
S240, judging whether the type of the current formula factor is a text element or not;
if yes, executing S250;
if not, S260 is performed.
S250, calling a pre-built text analysis component to analyze the current formula factors to obtain first-class JAVA formula factors matched with the current formula factors, and adding the first-class JAVA formula factors into a general formula script in a JAVA format.
Specifically, the JAVA formula factor of the first type is a formula factor of a text type, and the formula factor of the text type needs to be called to be parsed by a text parsing component to generate the JAVA formula factor of the first type.
S260, calling a pre-built formula analysis component to analyze the current formula factors to obtain second-class JAVA formula factors matched with the current formula factors, and adding the second-class JAVA formula factors into the general formula script in the JAVA format.
Specifically, the JAVA formula factor of the second type is a formula factor of a formula type, and the formula factor of the formula type needs to be analyzed by calling a formula analysis component to generate the JAVA formula factor of the second type.
In this embodiment, optionally, since the original formula code is generated in response to a formula editing instruction of the user in the visual formula editing platform, the flow of the above operation may be simplified to generate a general formula script for each formula editing instruction; also, because the formula edit instruction includes a development code tool block configured in the formula edit platform that can be used to generate a specific formula, i.e., the flow of the operations described above can be considered as generating a generic formula script for each operation of the development code tool block.
Specifically, the mapping relationship between the operations of the development code tool block and the JAVA format codes is shown in table 4:
table 4: developing the mapping relation between the operation of the code tool block and the JAVA format code
According to the technical scheme, an original formula code in a JS format is generated by responding to a formula editing instruction of a user in a visual formula editing platform, then a matched XML parsing component is called to parse according to the types of various JS formula elements contained in the original formula code, an intermediate formula code in an XML format is obtained, finally each formula factor is identified in the intermediate formula code, and whether the type of the current formula factor is a text element or not is judged; if yes, a pre-built text analysis component is called to analyze the current formula factors to obtain first-class JAVA formula factors matched with the current formula factors, and the first-class JAVA formula factors are added into a general formula script in a JAVA format; if not, a pre-built formula analysis component is called to analyze the current formula factors to obtain second-class JAVA formula factors matched with the current formula factors, and the second-class JAVA formula factors are added into a general formula script in JAVA format, so that the problem that an original formula code generated in the prior art cannot support formulas to be visually displayed in various display interfaces is solved, generation of the general formula script based on the original formula code is realized, and further the general formula script can be visually displayed in a display page written by using any programming language.
Detailed description of the embodiments
In order to more clearly describe the technical solution provided by the embodiment of the present invention, this embodiment will simply introduce a specific implementation scenario obtained according to this embodiment.
S1: and obtaining the original formula codes in the JS format, and identifying each work area code in the original formula codes.
S2, acquiring a first JS formula element in each work area code to start analysis processing.
S3, calling the analysis component core method inlet buildFormula (expression) to analyze
S3.1, if the JS formula element does not exist, returning an empty character string, ending the method call analysis, and returning an error result
S3.2, obtaining the element name expression of the JS formula element, tagname, tolowercase () = = = = "block" and performing the following operations: 1) Acquiring element attributes: expression.getattribute ("type") = = = = 'variables_set_free')
2) Acquiring a first subelement of the JS formula element: var first child = expression.child [0];
3) Acquiring a second subelement var nextChild=first Child;
if the element name is "value" nextcchild.tagname.tolowercase () = = = "value"; if the element name is "value" nextcchild.tagname.tolowercase () = = = = "value" the last subelement on the right of the acquisition equation is parsed: valueStatement = buildbmula (nextcchild. Child-1);
4) Adding the analysis result to an intermediate formula code template: expressionXml + = value station + '</equationblock >' and obtain the next element var nextNextChild = nextchild, nextsibling.
5) If the element name is 'value' newchild.tagname.tolowercase () = = = "next", adding the analysis result into an intermediate formula code template, and ending the current analysis operation, namely, expressionxml+ = '</equencyblock >';
6) Otherwise, splicing the equation to end the label to finish the analysis of the current equation, namely, the expressionXml + = '</equationblock >';
s3.3, obtaining element names: the expression, tagname, tolowercase () = = = = "math_arithmetical_basic" determines that the formula is composed of two elements. Then obtaining sub-element text information, wherein var op=expression.child [0]. TextContent;
1) The child element text information is addition, "ADD", and is converted into a co-formula label operator= 'ADD';
2) The subelement text information is subtraction, "SUBTRACT", and is converted into a co-formula label operator= 'substract';
3) The subelement text information is multiplied by 'MULTIPLY', and converted into a co-formula label operator= 'multiple';
4) The subelement text information is divided into 'DIVIDE', and converted into a co-formula label operator= 'DIVIDE';
5) Converting into a formula element label express = '< formulablock name = "' +operator +" >;
6) Conversion to formula factor 1: expressxml + = '< factorblock condition = "factorlndex=" 1">', acquiring the first subelement call expressxml + = '</factorrblock >', and then converting into formula factors: expressionxml+ = '< factorblock condition = "factorlndex=" 2">';
expressxml+ = obtaining a second subelement for analysis processing, wherein expressxml+ = '</factor block >', expressxml+ = '</formula block >';
s3.4. get attribute (expression. Getattribute ("type") = = = = "math_mod" turn into formula element label expression xml+ =' < formulablock name = "mod" > ".
1) Converting into formula factors: expressexml+ = '< factorblock condition = "factorlndex=" 1">', and acquiring a first subelement for analysis processing, wherein expressexml+ = '</factorrblock >';
2) Converting into formula factors: expressexml+= '< factorblock condition = "factorlndex=" 2">', and expressexml+= second subelement was obtained for parsing: expressexml + = '</factor block >', expressexml + = '</formula block >';
S3.5. acquire attribute (expression. Getattribute ("type") = = = = "math_power").
1) Converting into a formula element label express = '< formulablock name = "power" >';
2) Conversion to formula factor 1: expressexml+ = '< factorblock condition = "factorlndex=" 1">', and acquiring a first subelement for analysis processing, wherein expressexml+ = '</factorrblock >';
3) Conversion to formula factor 1: expressexml = '< factorblock condition = "factorlndex =" 2">', expressexml = obtaining the second subelement and analyzing the second subelement, and expressexml = '</factorrblock >', expressexml = '</formulation block >';
s4, obtaining the element name of express, tagname, tolowercase () = = = "next" to determine that the current element is a next element, the next element is not processed,
s5, obtaining an element name of express, tagname, tolowercase () = = = = "shadow" to judge whether the element type is text or digital express, getattribute ("type") = = = "math_number_free" or express, getattribute ("type") = = = = "text_free" ", and performing an operation of converting a character string:
expressionXml += '<textblock>';
expressionXml += expression.children[0].textContent;
expressionXml += '</textblock>';
s6, outputting an intermediate formula code: return expressionXml;
s7: and resolving the intermediate formula code into a DOM document object by using a DOM4J open source XML resolving package component of dom4j.org products, and acquiring a root element through the DOM document object.
S8: querying out equation node set according to element path through root element
S9, resolving the equation nodes into codes in JAVA format by using an equation block resolving component, and specifically:
1) According to the path query text node set, acquiring a code which is analyzed into JAVA format by the first text element through a text code block analysis component and returning
2) Judging that the text node combination is equal to 2, indicating that the second element is also a text element, analyzing the text element into a code return in JAVA format by using a text code block analysis component, otherwise, analyzing the formula element by using a formula block analysis component
S10, analyzing the formula nodes into codes in JAVA format by using a formula block analysis component, and returning the codes, namely circularly using the text code block analysis component to analyze according to the path query factor node set.
S11, analyzing the formula nodes into codes in JAVA format by using a formula block analysis component and returning.
And S12, assembling the returned codes in the JAVA format on the basis of the steps to obtain the universal formula script in the JAVA format.
Example III
Fig. 3 is a schematic structural diagram of a device for generating a universal formula script according to a third embodiment of the present invention.
As shown in fig. 3, the apparatus includes:
the original code obtaining module 310 is configured to generate an original formula code in JS format in response to a formula editing instruction of the user on the visual formula editing platform;
the intermediate code obtaining module 320 is configured to invoke the matched XML parsing component to parse according to the types of the JS formula elements included in the original formula code, so as to obtain an intermediate formula code in XML format;
the general formula script obtaining module 330 is configured to identify each formula factor in the intermediate formula code, and call the matched JAVA parsing component to parse according to the type of the formula factor, so as to obtain a general formula script in JAVA format;
the universal formula script is used for carrying out visual display in a display page written by using any programming language.
According to the technical scheme, the original formula code of the JS format is generated by responding to the formula editing instruction of the visual formula editing platform of the user, then the matched XML parsing component is called to parse according to the types of the JS formula elements contained in the original formula code to obtain the intermediate formula code of the XML format, finally each formula factor is identified in the intermediate formula code, and the matched JAVA parsing component is called to parse according to the types of the formula factors to obtain the general formula script of the JAVA format, so that the problem that the original formula code generated in the prior art cannot support the formula to be visually displayed in various display interfaces is solved, the generation of the general formula script based on the original formula code is realized, and the general formula script can be visually displayed in a display page written by using any programming language.
On the basis of the above embodiment, the original code acquisition module 310 includes:
the formula editing tool selecting unit is used for responding to a formula editing instruction of a user in the visual formula editing platform and identifying each formula editing tool selected and configured in the visual formula editing interface by the user;
and the original formula code generating unit is used for generating the original formula code in the JS format according to the identification result.
Based on the above embodiment, the intermediate code obtaining module 320 includes:
the keyword positioning unit is used for identifying a working area starting character string and a working area ending character string in the original formula code in a keyword positioning mode;
the working area code positioning unit is used for positioning the working area code in the original formula code according to the working area start character string and the working area end character string;
a code line acquisition unit, configured to sequentially acquire a code line in the workspace code;
the first conversion code row adding unit is used for calling a matched XML parsing component to parse according to the type of the JS formula element contained in the target code row if the code row is determined to contain the target code row of the JS formula element, so as to obtain a conversion code row, and adding the conversion code row into an intermediate formula code template;
The second converted code line adding unit is used for directly adding the code line into an intermediate formula code template if the code line is determined to not contain any JS formula element;
and the intermediate formula code determining unit is used for returning to execute the operation of sequentially acquiring one code row in the working area code until the processing of all the code rows is completed, and determining an intermediate formula code template at the end of the circulation as an intermediate formula code.
On the basis of the above embodiment, the first conversion code line adding unit further includes:
the JS formula element list query unit is used for querying a pre-established JS formula element list and detecting whether the code line contains a target JS formula element contained in the JS formula element list;
and the target code line determining unit is used for determining the code line of the code line, inquiring the mapping relation between JS formula elements and XML analysis components, and obtaining the XML analysis components of the targets matched with the target JS formula elements to analyze the target code line to obtain a converted code line.
Based on the above embodiment, the general formula script acquisition module 330 includes:
A current code line acquisition unit, configured to sequentially acquire a current code line in the intermediate formula code;
a root element list query unit, configured to query a pre-established root element list, and determine whether a target root element contained in the root element list exists in the current code line;
the code line decomposition unit is used for obtaining the equation node of the code line through the target root element if the target root element exists in the current code line, and decomposing the current code line into formula elements based on the position of the equation node;
the formula element verification unit is used for verifying whether each formula element only contains one formula factor, and when the target formula element is determined to contain a plurality of formula factors, a preconfigured formula analysis component is called to analyze the target formula element so as to obtain each new analyzed formula element, and verification is continued until all the formula factors contained in the current code row are identified;
and the return execution unit is used for returning and executing the operation of sequentially acquiring one current code line in the intermediate formula code until the processing of all the code lines in the intermediate formula code is completed.
Based on the above embodiment, the general formula script obtaining module 330 further includes:
a text element judging unit for judging whether the type of the current formula factor is a text element;
the first type factor judging unit is used for calling a pre-constructed text analyzing component to analyze the current formula factor to obtain a first type JAVA formula factor matched with the current formula factor, and adding the first type JAVA formula factor into a general formula script in a JAVA format;
the second type factor judging unit is used for calling a pre-constructed formula analyzing component to analyze the current formula factor to obtain a second type JAVA formula factor matched with the current formula factor, and adding the second type JAVA formula factor into a general formula script in a JAVA format.
On the basis of the above embodiment, the raw code obtaining module 310 is further configured to:
if the fact that the current original formula code does not contain any target JS formula element contained in the pre-established JS formula element list is detected, an error prompt is generated to a display device for display.
The generation device of the universal formula script provided by the embodiment of the invention can execute the generation method of the universal formula script provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, a general formula script generation method.
Accordingly, the method comprises the following steps:
responding to a formula editing instruction of a user in a visual formula editing platform, and generating an original formula code in a JS format;
Calling a matched XML parsing component to parse according to the types of the JS formula elements contained in the original formula code, so as to obtain an intermediate formula code in an XML format;
identifying each formula factor in the intermediate formula code, and calling a matched JAVA parsing component to parse according to the type of the formula factor to obtain a general formula script in a JAVA format;
the universal formula script is used for carrying out visual display in a display page written by using any programming language.
In some embodiments, the method of generating the universal formula script may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the general formula script generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of generating the universal formula script in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.

Claims (9)

1. A method for generating a universal formula script, comprising:
responding to a formula editing instruction of a user in a visual formula editing platform, and generating an original formula code in a JS format;
calling a matched XML parsing component to parse according to the types of the JS formula elements contained in the original formula code, so as to obtain an intermediate formula code in an XML format;
identifying each formula factor in the intermediate formula code, and calling a matched JAVA parsing component to parse according to the type of the formula factor to obtain a general formula script in a JAVA format;
the universal formula script is used for carrying out visual display in a display page written by using any programming language;
according to the types of the JS formula elements contained in the original formula code, a matched XML parsing component is called for parsing processing to obtain an intermediate formula code in an XML format, and the method comprises the following steps: identifying a working area starting character string and a working area ending character string in the original formula code in a keyword positioning mode; locating a working area code in the original formula code according to the working area start character string and the working area end character string; sequentially acquiring a code row in the working area code; if the code behavior is determined to contain the target code line of the JS formula element, calling a matched XML parsing component to parse according to the type of the JS formula element contained in the target code line to obtain a converted code line, and adding the converted code line into an intermediate formula code template; if the code line does not contain any JS formula element, directly adding the code line into an intermediate formula code template; and returning to execute the operation of sequentially acquiring one code line in the working area code until the processing of all the code lines is completed, and determining an intermediate formula code template at the end of the circulation as an intermediate formula code.
2. The method of claim 1, wherein generating the original formula code in JS format in response to a formula edit instruction from the user at the visual formula edit platform comprises:
responding to a formula editing instruction of a user in a visual formula editing platform, and identifying each formula editing tool selected and configured in a visual formula editing interface by the user;
and generating an original formula code in the JS format according to the identification result.
3. The method of claim 1, wherein if it is determined that the code behavior includes an object code line of JS formula elements, invoking a matched XML parsing component to parse according to a type of JS formula element included in the object code line to obtain a converted code line, comprising:
inquiring a pre-established JS formula element list, and detecting whether the code line contains a target JS formula element contained in the JS formula element list;
if yes, determining the code behavior target code line, inquiring the mapping relation between JS formula elements and XML analysis components, and obtaining the XML analysis components of targets matched with the target JS formula elements to analyze the target code line, so as to obtain a converted code line.
4. A method according to any one of claims 1-3, wherein identifying each formula factor in the intermediate formula code comprises:
sequentially acquiring a current code row from the intermediate formula code;
inquiring a pre-established root element list, and judging whether a target root element contained in the root element list exists in the current code line or not;
if a target root element exists in the current code line, obtaining an equation node of the code line through the target root element, and decomposing the current code line into formula elements based on the position of the equation node;
verifying whether each formula element only contains one formula factor, and when the target formula element contains a plurality of formula factors, calling a preconfigured formula analysis component to analyze the target formula element to obtain each new analyzed formula element, and continuing to verify until all the formula factors contained in the current code row are identified;
and returning to execute the operation of sequentially acquiring one current code line in the intermediate formula code until the processing of all code lines in the intermediate formula code is completed.
5. The method of claim 4, wherein the matching JAVA parsing component is invoked to parse according to the type of the formula factor to obtain a universal formula script in JAVA format,
judging whether the type of the current formula factor is a text element or not;
if yes, a pre-built text analysis component is called to analyze the current formula factors to obtain first-class JAVA formula factors matched with the current formula factors, and the first-class JAVA formula factors are added into a general formula script in a JAVA format;
if not, calling a pre-constructed formula analysis component to analyze the current formula factor to obtain a second type JAVA formula factor matched with the current formula factor, and adding the second type JAVA formula factor into a general formula script in a JAVA format.
6. The method of claim 1, wherein invoking the matched XML parsing component for parsing according to the type of each JS formula element contained in the original formula code, further comprises:
if the fact that the current original formula code does not contain any target JS formula element contained in the pre-established JS formula element list is detected, an error prompt is generated to a display device for display.
7. A general formula script generation device, comprising:
the original code acquisition module is used for responding to a formula editing instruction of a user in the visual formula editing platform to generate an original formula code in a JS format;
the intermediate code acquisition module is used for calling the matched XML analysis component to carry out analysis processing according to the types of the JS formula elements contained in the original formula code to obtain an intermediate formula code in an XML format;
the general formula script acquisition module is used for identifying each formula factor in the intermediate formula code, and calling a matched JAVA analysis component to carry out analysis processing according to the type of the formula factor to obtain a general formula script in a JAVA format;
the universal formula script is used for carrying out visual display in a display page written by using any programming language;
the intermediate code acquisition module specifically comprises: the keyword positioning unit is used for identifying a working area starting character string and a working area ending character string in the original formula code in a keyword positioning mode; the working area code positioning unit is used for positioning the working area code in the original formula code according to the working area start character string and the working area end character string;
A code line acquisition unit, configured to sequentially acquire a code line in the workspace code; the first conversion code row adding unit is used for calling a matched XML parsing component to parse according to the type of the JS formula element contained in the target code row if the code row is determined to contain the target code row of the JS formula element, so as to obtain a conversion code row, and adding the conversion code row into an intermediate formula code template; the second converted code line adding unit is used for directly adding the code line into an intermediate formula code template if the code line is determined to not contain any JS formula element; and the intermediate formula code determining unit is used for returning to execute the operation of sequentially acquiring one code row in the working area code until the processing of all the code rows is completed, and determining an intermediate formula code template at the end of the circulation as an intermediate formula code.
8. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a method of generating a generic formula script according to any of claims 1-6.
9. A computer readable storage medium storing computer instructions for causing a processor to execute a method of generating a universal formula script according to any one of claims 1-6.
CN202311559211.4A 2023-11-22 2023-11-22 Method, device, equipment and medium for generating universal formula script Active CN117270838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311559211.4A CN117270838B (en) 2023-11-22 2023-11-22 Method, device, equipment and medium for generating universal formula script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311559211.4A CN117270838B (en) 2023-11-22 2023-11-22 Method, device, equipment and medium for generating universal formula script

Publications (2)

Publication Number Publication Date
CN117270838A CN117270838A (en) 2023-12-22
CN117270838B true CN117270838B (en) 2024-02-13

Family

ID=89218193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311559211.4A Active CN117270838B (en) 2023-11-22 2023-11-22 Method, device, equipment and medium for generating universal formula script

Country Status (1)

Country Link
CN (1) CN117270838B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6282699B1 (en) * 1999-02-23 2001-08-28 National Instruments Corporation Code node for a graphical programming system which invokes execution of textual code
KR20150052724A (en) * 2013-11-06 2015-05-14 주식회사 엘지씨엔에스 Method of generating code, computer device performing the same and storage media storing the same
CN109725896A (en) * 2018-12-29 2019-05-07 深圳点猫科技有限公司 A kind of method and electronic equipment of online editing python code
CN110494843A (en) * 2017-04-03 2019-11-22 创首公司 Mixing model programming
CN111475155A (en) * 2020-03-26 2020-07-31 哈尔滨工业大学 Graphic block-based graphical programming method for robot interaction
CN112114818A (en) * 2020-09-28 2020-12-22 建信金融科技有限责任公司 JAVA compiling method and device for expression
CN113568622A (en) * 2021-08-06 2021-10-29 工银科技有限公司 Method and device for converting codes and electronic equipment
CN113791768A (en) * 2021-09-22 2021-12-14 海通证券股份有限公司 Code generation method and device, storage medium and terminal
CN113961183A (en) * 2021-10-22 2022-01-21 平安银行股份有限公司 Visual programming method, device, equipment and storage medium
CN115061673A (en) * 2022-08-18 2022-09-16 湖南云畅网络科技有限公司 Low-code visual expression based arranging and executing method and system
WO2023273621A1 (en) * 2021-06-29 2023-01-05 北京字跳网络技术有限公司 Script generation method and apparatus, device and medium
CN116028062A (en) * 2022-10-25 2023-04-28 北京超星未来科技有限公司 Target code generation method, NPU instruction display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9292478B2 (en) * 2008-12-22 2016-03-22 International Business Machines Corporation Visual editor for editing complex expressions

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6282699B1 (en) * 1999-02-23 2001-08-28 National Instruments Corporation Code node for a graphical programming system which invokes execution of textual code
KR20150052724A (en) * 2013-11-06 2015-05-14 주식회사 엘지씨엔에스 Method of generating code, computer device performing the same and storage media storing the same
CN110494843A (en) * 2017-04-03 2019-11-22 创首公司 Mixing model programming
CN109725896A (en) * 2018-12-29 2019-05-07 深圳点猫科技有限公司 A kind of method and electronic equipment of online editing python code
CN111475155A (en) * 2020-03-26 2020-07-31 哈尔滨工业大学 Graphic block-based graphical programming method for robot interaction
CN112114818A (en) * 2020-09-28 2020-12-22 建信金融科技有限责任公司 JAVA compiling method and device for expression
WO2023273621A1 (en) * 2021-06-29 2023-01-05 北京字跳网络技术有限公司 Script generation method and apparatus, device and medium
CN113568622A (en) * 2021-08-06 2021-10-29 工银科技有限公司 Method and device for converting codes and electronic equipment
CN113791768A (en) * 2021-09-22 2021-12-14 海通证券股份有限公司 Code generation method and device, storage medium and terminal
CN113961183A (en) * 2021-10-22 2022-01-21 平安银行股份有限公司 Visual programming method, device, equipment and storage medium
CN115061673A (en) * 2022-08-18 2022-09-16 湖南云畅网络科技有限公司 Low-code visual expression based arranging and executing method and system
CN116028062A (en) * 2022-10-25 2023-04-28 北京超星未来科技有限公司 Target code generation method, NPU instruction display method and device

Also Published As

Publication number Publication date
CN117270838A (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN111552627A (en) User interface testing method and device, storage medium and computer equipment
US20170192877A1 (en) Mobile application development and deployment
CN112506602B (en) Page generation method and device, electronic equipment and computer readable medium
CN113010827A (en) Page rendering method and device, electronic equipment and storage medium
CN113392346A (en) Path processing method and device for resource file, electronic equipment and storage medium
CN112988298A (en) Visual interface configuration method and device, computer equipment and storage medium
CN116028028A (en) Request function generation method, device, equipment and storage medium
CN115509522A (en) Interface arranging method and system for low-code scene and electronic equipment
CN115599359A (en) Code generation method, device, equipment and medium
CN111290996A (en) Document format conversion method, device, equipment and readable storage medium
CN114217789A (en) Function component expansion method, device, equipment, storage medium and program product
CN112926008A (en) Method and device for generating form page, electronic equipment and storage medium
CN117234582A (en) Project code processing method and device, electronic equipment and storage medium
CN117270838B (en) Method, device, equipment and medium for generating universal formula script
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN115577689A (en) Table component generation method, device, equipment and medium
CN109783134B (en) Front-end page configuration method and device and electronic equipment
CN111178025A (en) Editing method and device of nuclear power plant operation guide rules, computer equipment and storage medium
CN111475403A (en) Dynamic generation method of test script and related device
CN111078230A (en) Code generation method and device
CN117076813B (en) Front-end browser rendering method and device, electronic equipment and storage medium
CN113642295B (en) Page typesetting method, device and computer program product
CN113971028A (en) Data processing method, device, equipment, storage medium and computer program product
CN117742686A (en) Program source code file generation method and device, electronic equipment and storage medium
CN116483345A (en) Form generation method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant