CN-122018919-A - Engineering platform grammar expression and interpretation method
Abstract
The invention discloses an engineering platform grammar expression and interpretation method, which comprises the steps of converting a demand model into a grammar script, converting the grammar script into an XML script and loading the XML script into an ASP platform. The script language is designed for describing the digital platform, can become a unified abstract layer of the digital platform, obviously reduces the configuration complexity in platform engineering, and simultaneously maintains the control on the underlying technology.
Inventors
- GAO XINCUN
- HUANG LINGFENG
- WANG HONGJUN
- CHENG PENG
- ZOU WEIKUN
Assignees
- 北京神舟航天软件技术股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260213
Claims (9)
- 1. An engineering platform grammar expression and interpretation method, characterized in that the interpretation method comprises: the demand model is converted into grammar script, the grammar script is converted into XML script and the XML script is loaded to the ASP platform.
- 2. The method for expressing and interpreting an engineering platform grammar according to claim 1, wherein said requirement model is converted into a grammar script comprising an ASP lexical processor, an ASP grammar processor, and an ASP semantic checker.
- 3. The method for expressing and interpreting an engineering platform grammar as claimed in claim 1, wherein said grammar script is converted into XML script comprising ASP XML generator and ASP error report generator.
- 4. The method for expressing and interpreting an engineering platform grammar according to claim 1, wherein said loading the XML script into the ASP platform specifically comprises: uploading the generated XML script to a target server; the XML script passes through a loading engine to generate an application import record; the loading engine is used for leading in root data, deconstructing the data layer by layer and leading in an ASP platform; the application of the server is updated while generating an application data update record.
- 5. An engineered platform grammar expression and interpretation method as claimed in claim 2, wherein the ASP lexical processor comprises: decomposing the demand model into lexical units, and constructing a dictionary based on reserved words of Chinese characters; identifying keywords, identifiers, constants, operators and punctuation mark lexical units; Chinese punctuation is supported as a grammar separator, and a Token stream is output.
- 6. An engineered platform grammar expression and interpretation method as claimed in claim 2, wherein the ASP syntax processor comprises: Identifying modules, components, flows, permissions, component definitions and cross-domain calls of the demand model; Constructing grammar expression, requiring to start with Chinese characters, and comprising Chinese characters, numbers and underlines; prohibiting the use of reserved words as variable names; (1) Operation priority carding: combing operation priorities from the demand model, and outputting a priority list and grammar expression; (2) Data input/output carding: carding data input from the demand model, and outputting a data input list and grammar expression; Carding data output from the demand model, and outputting a data output list and grammar expression; (3) Syntax structure carding: (3.1) carding the sequence structure from the demand model, and outputting a sequence structure list and grammar expression; (3.2) carding the branch structure from the demand model, and outputting a branch structure list and grammar expression; (3.3) carding the circulating structure from the demand model, and outputting a circulating structure list and grammar expression; (4) Function block combing, namely combing the function blocks from the demand model, outputting function structures, function calls and grammar expressions, and combing the ASP built-in function blocks from the demand model, and outputting function call lists and grammar expressions.
- 7. The method for expressing and interpreting grammar of engineering platform according to claim 2, wherein said ASP semantic checker comprises, in particular, that the grammar expressed from the demand model is combed, and the necessary semantic check is performed by using the component library and the third party library call supported by the ASP platform; (1) Comparing the grammar expression with a component library supported by the ASP platform and a third party library call sequence, outputting errors or suspected errors, and identifying by manual participation; (2) Type checking, checking data type consistency, processing type checking and dependency analysis; (3) And verifying the authority, supporting dynamic loading of component metadata, verifying the compatibility of a component interface, and verifying the compliance of an authority model.
- 8. An engineering platform grammar expression and interpretation method according to claim 3, characterized in that the ASP XML generator comprises in particular: loading a symbol table, including a global component table, a local variable table and a temporary data table, and recording meta information of components, variables, functions, data models, roles, dictionaries and the like; calling a symbol table, and matching keywords of a grammar script and reserved word elements; on the basis of a symbol table, an XML generator directly converts grammar expression nodes into a structured XML file, adopts a templatization generation strategy, supports XML Schema verification, and the generated XML contains component definition, data model, flow control and authority configuration content.
- 9. The method for expressing and interpreting an engineering platform grammar according to claim 3, wherein said ASP error report generator comprises: Loading a symbol table, including a global component table, a local variable table and a temporary data table, and recording component, variable, function, data model, role and dictionary meta information; calling a symbol table, and matching keywords of a grammar script and reserved word elements; Based on the symbol table, the ASP error report generator performs error checking and report output of the XML script; (1) Supporting cross-scope reference analysis, and recording component version information and dependency relationships; (2) Providing a cross reference checking function, and ensuring correct component dependency and data consistency; (3) Multi-level error checking of XML script, checking illegal character lexical error, structure missing grammar error and type mismatch semantic error, and outputting a report; (4) Providing error location, error type and possible repair suggestions, locating and correcting errors in the script.
Description
Engineering platform grammar expression and interpretation method Technical Field The invention relates to the field of digital platform engineering, in particular to an engineering platform grammar expression and interpretation method. Background The digital platform engineering is a systematic concept integrating digital technology and a platform architecture, and is characterized in that a standardized and modularized technical platform is constructed to provide a bottom layer support and an efficient solution for enterprise digital transformation. The digital platform engineering is to integrate digital technologies such as cloud computing, big data, artificial intelligence, the Internet of things and the like by taking a platform as a carrier, so as to create a reusable and expandable technical base. The essence of the method is that complex technical capability is abstracted into modularized service through standardized architecture design, so that a business department can quickly call in a 'taking and using' mode, and development, deployment and iteration of digital application are accelerated. With the deep advancement of enterprise digital transformation, an application system development platform (Application System Platform, abbreviated as ASP) has become an important infrastructure for supporting informatization construction in the fields of scientific research, production, operation management and the like. The ASP platform integrates basic components such as a data model, a workflow, APP registration, buttons, rights, personnel, organizations, roles, data dictionaries and the like, supports the rapid construction of an application system framework through visual configuration, and realizes the customized development of service processing logic by combining program codes. However, with the continuous expansion of application scenes and the continuous improvement of complexity, the conventional ASP platform gradually exposes a series of problems and bottlenecks in the aspects of unified modeling, collaboration efficiency, intelligent capability and the like. The application system development scripting language oriented to platform engineering is not only a scripting language, but also an engineering expression tool, and aims to realize transition from 'low code + programming' to 'model driving development', and push a platform from 'configuration' to 'linguistic', so that the construction efficiency, collaborative capability and intelligent level of an application system are comprehensively improved. The current ASP platform is widely applied to a plurality of business fields such as scientific research, production, operation, management and the like, and has the core value of reducing the development threshold and improving the delivery efficiency by means of modularization and visualization. However, in the practical application process, the platform faces a plurality of deep problems such as lack of unified modeling standards, serious repeated construction of components, difficult system evolution, complex authority and flow configuration, high cross-team cooperation cost, weak intelligent capability and the like. Especially in the process of intelligent transformation of a propulsion platform, how to effectively introduce new technologies such as prompt word engineering, AI auxiliary modeling, intelligent generation and the like becomes a key difficulty of platform upgrading. These problems not only affect the ease and extensibility of the platform, but also limit its in-depth application in a wider business scenario. (1) Problems occur in the platform application mode of visual configuration and program development Currently, the ASP platform commonly adopts a hybrid development mode of visual configuration and program development. Although this mode reduces the partial development threshold, in practice the following problems remain: ① In terms of semantics, a unified semantic system is lacking between visual configuration and program codes, so that configuration logic and code logic are difficult to be consistent, semantics are split, ② is in terms of maintenance, configuration items are scattered and are difficult to be versioned, change histories are difficult to trace, maintenance is difficult, ③ is in terms of cooperation, different roles (business personnel and developers) use different tools and languages, and communication cost is high. A collaboration disorder; ④ is in the aspect of automation degree, a large amount of logics need to be manually encoded, automation generation and deployment are difficult to achieve, automation degree is low, ⑤ is in the aspect of reusability, configuration is difficult to reuse, repeated labor frequently occurs, and reusability is low. Therefore, a unified language system is needed to bridge the gap between the visualization and the code, and realize the integrated expression and management of the logic inside the platform. (2) The development p