CN103135979B - The generation method of terminal applies, Apparatus and system - Google Patents
The generation method of terminal applies, Apparatus and system Download PDFInfo
- Publication number
- CN103135979B CN103135979B CN201110398909.3A CN201110398909A CN103135979B CN 103135979 B CN103135979 B CN 103135979B CN 201110398909 A CN201110398909 A CN 201110398909A CN 103135979 B CN103135979 B CN 103135979B
- Authority
- CN
- China
- Prior art keywords
- application
- generate
- script
- target application
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000013515 script Methods 0.000 claims abstract description 110
- 238000011161 development Methods 0.000 claims abstract description 22
- 230000006870 function Effects 0.000 claims description 21
- 238000004806 packaging method and process Methods 0.000 claims description 14
- 238000004458 analytical method Methods 0.000 claims description 4
- 238000005215 recombination Methods 0.000 claims description 2
- 230000006798 recombination Effects 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000003491 array Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008521 reorganization Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
本发明提供一种终端应用的生成方法、装置及系统,属于数据业务领域。其中,该终端应用的生成方法包括:根据用户提供的目标应用的信息文本获取目标应用的配置信息;将所述配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码,所述脚本模板为能够实现目标应用的功能的可执行文件;利用所述可执行代码生成在目标终端平台上可执行的应用程序,并对所述应用程序打包生成目标应用。本发明的技术方案能够提高终端应用开发的效率,使得用户可以快速有效的生成终端应用。
The invention provides a method, device and system for generating terminal applications, which belong to the field of data services. Wherein, the generating method of the terminal application includes: obtaining the configuration information of the target application according to the information text of the target application provided by the user; filling the configuration information into the corresponding variables of the pre-compiled script template; Compile and generate executable code, the script template is an executable file that can realize the function of the target application; use the executable code to generate an executable application program on the target terminal platform, and package the application program to generate the target application. The technical solution of the present invention can improve the efficiency of terminal application development, so that users can quickly and effectively generate terminal applications.
Description
技术领域 technical field
本发明涉及数据业务领域,特别是指一种终端应用的生成方法、装置及系统。The present invention relates to the field of data services, in particular to a method, device and system for generating terminal applications.
背景技术 Background technique
移动计算如今已经深入社会生活的方方面面,而面对纷繁复杂的软硬件平台,大相径庭的操作系统以及API(ApplicationProgrammingInterface,应用程序编程接口),移动终端应用的开发却显得捉襟见肘,需要耗费大量时间和人力物力为不同的平台进行多次开发。而同时,又有大量拥有内容和移动发布需求的行业和用户,限制于手机应用的开发知识和能力,无法生产制作出自己的手机应用。Mobile computing has now penetrated into all aspects of social life, but in the face of complex software and hardware platforms, vastly different operating systems and APIs (Application Programming Interface, Application Programming Interface), the development of mobile terminal applications is stretched and requires a lot of time and manpower. Material has been developed multiple times for different platforms. At the same time, there are a large number of industries and users with content and mobile publishing needs, limited by the development knowledge and ability of mobile phone applications, and unable to produce their own mobile phone applications.
综上所述,用户在进行手机应用开发时,面对不同的手机平台需要掌握多种开发语言,并且需要对大量不同的主流手机终端进行适配工作,使得手机应用的开发耗时耗力,更重要的是,在有新的功能需求和需要升级时,用户仍然要进行重复的开发工作流程,才能生成新的手机应用。To sum up, when developing mobile phone applications, users need to master a variety of development languages for different mobile phone platforms, and need to adapt a large number of different mainstream mobile phone terminals, which makes the development of mobile phone applications time-consuming and labor-intensive. More importantly, when there are new functional requirements and upgrades are required, users still have to go through repeated development workflows to generate new mobile applications.
发明内容 Contents of the invention
本发明要解决的技术问题是提供一种终端应用的生成方法、装置及系统,能够提高终端应用开发的效率,使得用户可以快速有效的生成终端应用。The technical problem to be solved by the present invention is to provide a terminal application generation method, device and system, which can improve the efficiency of terminal application development, so that users can quickly and effectively generate terminal applications.
为解决上述技术问题,本发明的实施例提供技术方案如下:In order to solve the above technical problems, embodiments of the present invention provide technical solutions as follows:
一方面,提供一种终端应用的生成方法,包括:On the one hand, a method for generating a terminal application is provided, including:
根据用户提供的目标应用的信息文本获取目标应用的配置信息;Obtain configuration information of the target application according to the information text of the target application provided by the user;
将所述配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码,所述脚本模板为能够实现目标应用的功能的可执行文件;Filling the configuration information into the corresponding variables of the pre-programmed script template, and compiling the filled script to generate executable code, the script template is an executable file capable of realizing the function of the target application;
利用所述可执行代码生成在目标终端平台上可执行的应用程序,并对所述应用程序打包生成目标应用。The executable code is used to generate an executable application program on the target terminal platform, and the application program is packaged to generate a target application.
进一步地,所述根据用户提供的目标应用的信息文本获取目标应用的配置信息之前还包括:Further, before acquiring the configuration information of the target application according to the information text of the target application provided by the user, the method further includes:
利用脚本语言编制脚本模板,所述脚本模板包括多个对应目标应用的配置信息的变量。A script template is prepared by using a script language, and the script template includes a plurality of variables corresponding to the configuration information of the target application.
进一步地,所述根据用户提供的目标应用的信息文本获取目标应用的配置信息包括:Further, the acquiring the configuration information of the target application according to the information text of the target application provided by the user includes:
将所述目标应用的信息文本拆分成预先设定的多个内容要素;Splitting the information text of the target application into multiple preset content elements;
对所述多个不同内容要素进行编排和重组,生成多个预设格式的文本,所述文本中包含有目标应用的配置信息。Arranging and reorganizing the multiple different content elements to generate multiple texts in preset formats, the texts containing configuration information of the target application.
进一步地,所述将所述配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码包括:Further, filling the configuration information into corresponding variables of a pre-programmed script template, and compiling the filled script to generate executable code includes:
将所述多个预设格式的文本填充入所述脚本模板的对应变量中;Filling the plurality of pre-formatted texts into corresponding variables of the script template;
对填充后得到的脚本进行语法和语义分析,生成脚本语言树的数据结构,并对所述数据结构进行编译生成二进制可执行代码。Perform syntax and semantic analysis on the filled script to generate a script language tree data structure, and compile the data structure to generate binary executable code.
进一步地,所述利用所述可执行代码生成在目标终端平台上可执行的应用程序,并对所述应用程序打包生成目标应用包括:Further, said using said executable code to generate an application program executable on the target terminal platform, and packaging said application program to generate a target application includes:
将所述可执行代码和目标终端平台的底层引擎进行绑定,生成可执行的应用程序;Binding the executable code to the underlying engine of the target terminal platform to generate an executable application program;
根据目标终端平台的规范对所述应用程序打包生成可在目标终端平台上运行的目标应用。The application program is packaged according to the specifications of the target terminal platform to generate a target application that can run on the target terminal platform.
本发明实施例还提供了一种终端应用的生成装置,包括:The embodiment of the present invention also provides a device for generating a terminal application, including:
内容配置模块,用于根据用户提供的目标应用的信息文本获取目标应用的配置信息;A content configuration module, configured to acquire configuration information of the target application according to the information text of the target application provided by the user;
模板组合模块,用于将所述配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码,所述脚本模板为能够实现目标应用功能的可执行文件;The template combination module is used to fill the configuration information into the corresponding variables of the pre-compiled script template, and compile the filled script to generate executable code, and the script template is an executable code that can realize the target application function document;
引擎打包模块,用于利用所述可执行代码生成可执行的应用程序,并对所述应用程序打包生成目标应用。The engine packaging module is used to generate an executable application program by using the executable code, and package the application program to generate a target application.
进一步地,所述装置还包括:Further, the device also includes:
编制模块,用于利用脚本语言编制脚本模板,所述脚本模板包括多个对应目标应用的配置信息的变量。The compiling module is used for compiling a script template by using a script language, and the script template includes a plurality of variables corresponding to the configuration information of the target application.
进一步地,所述内容配置模块包括:Further, the content configuration module includes:
拆分子模块,用于将所述目标应用的信息文本拆分成预先设定的多个内容要素;Splitting sub-modules, configured to split the information text of the target application into a plurality of preset content elements;
重组子模块,用于对所述多个不同内容要素进行编排和重组,生成多个预设格式的文本,所述文本中包含有目标应用的配置信息。The recombination sub-module is used for arranging and reorganizing the multiple different content elements to generate multiple texts in preset formats, and the texts contain the configuration information of the target application.
进一步地,所述模板组合模块包括:Further, the template combination module includes:
填充子模块,用于将所述多个预设格式的文本填充入所述脚本模板的对应变量中;A filling submodule, configured to fill the plurality of texts in preset formats into corresponding variables of the script template;
编译子模块,用于对填充后得到的脚本进行语法和语义分析,生成脚本语言树的数据结构,并对所述数据结构进行编译生成二进制可执行代码。The compiling sub-module is used to analyze the syntax and semantics of the filled script, generate the data structure of the script language tree, and compile the data structure to generate binary executable code.
进一步地,所述引擎打包模块包括:Further, the engine packaging module includes:
引擎绑定子模块,用于将所述可执行代码和目标终端平台的底层引擎进行绑定,生成可执行的应用程序;The engine binding submodule is used to bind the executable code with the underlying engine of the target terminal platform to generate an executable application program;
打包子模块,用于根据目标终端平台的规范对所述应用程序打包生成可在目标终端平台上运行的目标应用。The packaging submodule is used to package the application program according to the specifications of the target terminal platform to generate a target application that can run on the target terminal platform.
本发明实施例还提供了一种终端应用的生成系统,包括:The embodiment of the present invention also provides a terminal application generation system, including:
应用管理装置,用于接收用户的包含有目标应用的信息文本的应用开发请求,并将所述目标应用的信息文本存储在应用存储装置中;An application management device, configured to receive a user's application development request containing the information text of the target application, and store the information text of the target application in the application storage device;
所述应用存储装置,用于存储目标应用的信息文本;The application storage device is used to store the information text of the target application;
终端应用的生成装置,用于根据所述应用存储装置存储的目标应用的信息文本获取目标应用的配置信息,将所述配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码,所述脚本模板为能够实现目标应用功能的可执行文件,利用所述可执行代码生成在目标终端平台上可执行的应用程序,并对所述应用程序打包生成目标应用。The generating device of the terminal application is used to obtain the configuration information of the target application according to the information text of the target application stored in the application storage device, fill the configuration information into the corresponding variables of the pre-programmed script template, and obtain The script is compiled to generate executable code, the script template is an executable file capable of realizing the target application function, the executable code is used to generate an executable application program on the target terminal platform, and the application program is packaged and generated target application.
本发明的实施例具有以下有益效果:Embodiments of the present invention have the following beneficial effects:
上述方案中,采用脚本模板结合内容配置的方法进行终端应用的开发。通过预先编制的脚本模板,用户只需要提供目标应用的相关配置信息即可生成目标应用,同时生成的目标应用可支持多个终端平台,提高了终端应用的开发效率,使得用户可以快速有效的生成终端应用。In the above solution, the terminal application is developed by using script template combined with content configuration method. Through the pre-programmed script template, the user only needs to provide the relevant configuration information of the target application to generate the target application. At the same time, the generated target application can support multiple terminal platforms, which improves the development efficiency of terminal applications and enables users to quickly and effectively generate terminal application.
附图说明 Description of drawings
图1为本发明实施例的终端应用的生成方法的流程示意图;FIG. 1 is a schematic flowchart of a method for generating a terminal application according to an embodiment of the present invention;
图2为本发明实施例的终端应用的生成装置的结构框图;FIG. 2 is a structural block diagram of an apparatus for generating a terminal application according to an embodiment of the present invention;
图3为本发明实施例的终端应用的生成系统的结构框图。Fig. 3 is a structural block diagram of a system for generating a terminal application according to an embodiment of the present invention.
具体实施方式 detailed description
为使本发明的实施例要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.
本发明的实施例针对现有技术中手机应用的开发耗时耗力的问题,提供一种终端应用的生成方法、装置及系统,能够提高终端应用开发的效率,使得用户可以快速有效的生成终端应用。The embodiments of the present invention aim at the problem of time-consuming and labor-intensive development of mobile phone applications in the prior art, and provide a terminal application generation method, device and system, which can improve the efficiency of terminal application development, so that users can quickly and effectively generate terminal applications. application.
图1为本发明实施例的终端应用的生成方法的流程示意图,如图1所示,本实施例包括:FIG. 1 is a schematic flowchart of a method for generating a terminal application according to an embodiment of the present invention. As shown in FIG. 1 , this embodiment includes:
步骤S101:根据用户提供的目标应用的信息文本获取目标应用的配置信息;Step S101: Obtain the configuration information of the target application according to the information text of the target application provided by the user;
步骤S102:将配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码,其中,脚本模板为能够实现目标应用的功能的可执行文件;Step S102: filling the configuration information into the corresponding variables of the pre-compiled script template, and compiling the filled script to generate executable code, wherein the script template is an executable file capable of realizing the functions of the target application;
步骤S103:利用可执行代码生成在目标终端平台上可执行的应用程序,并对应用程序打包生成目标应用。Step S103: using the executable code to generate an application program executable on the target terminal platform, and packaging the application program to generate a target application.
本发明的终端应用的生成方法采用脚本模板结合内容配置的方法进行终端应用的开发。通过预先编制的脚本模板,用户只需要提供目标应用的相关配置信息即可生成目标应用,同时生成的目标应用可支持多个终端平台,提高了终端应用的开发效率,使得用户可以快速有效的生成终端应用。The terminal application generating method of the present invention uses a script template combined with a content configuration method to develop terminal applications. Through the pre-programmed script template, the user only needs to provide the relevant configuration information of the target application to generate the target application. At the same time, the generated target application can support multiple terminal platforms, which improves the development efficiency of terminal applications and enables users to quickly and effectively generate terminal application.
图2为本发明实施例的终端应用的生成装置的结构框图,如图2所示,本实施例包括:FIG. 2 is a structural block diagram of a device for generating a terminal application according to an embodiment of the present invention. As shown in FIG. 2 , this embodiment includes:
内容配置模块21,用于根据用户提供的目标应用的信息文本获取目标应用的配置信息;The content configuration module 21 is used to acquire the configuration information of the target application according to the information text of the target application provided by the user;
模板组合模块22,用于将配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码,脚本模板为能够实现目标应用功能的可执行文件;The template combination module 22 is used to fill the configuration information into the corresponding variables of the pre-programmed script template, and compile the script obtained after filling to generate executable code, and the script template is an executable file that can realize the target application function;
引擎打包模块23,用于利用可执行代码生成可执行的应用程序,并对应用程序打包生成目标应用。The engine packaging module 23 is configured to generate an executable application program by using the executable code, and package the application program to generate a target application.
进一步地,该装置还包括:Further, the device also includes:
编制模块20,用于利用脚本语言编制脚本模板,脚本模板包括多个对应目标应用的配置信息的变量。The compilation module 20 is configured to use a script language to compile a script template, and the script template includes a plurality of variables corresponding to the configuration information of the target application.
其中,内容配置模块21包括:Wherein, the content configuration module 21 includes:
拆分子模块,用于将目标应用的信息文本拆分成预先设定的多个内容要素;Splitting sub-modules, used to split the information text of the target application into multiple preset content elements;
重组子模块,用于对多个不同内容要素进行编排和重组,生成多个预设格式的文本,文本中包含有目标应用的配置信息。The reorganization sub-module is used for arranging and reorganizing a plurality of different content elements, and generating a plurality of preset formatted texts, which contain configuration information of the target application.
进一步地,模板组合模块22包括:Further, template combination module 22 includes:
填充子模块,用于将多个预设格式的文本填充入脚本模板的对应变量中;The filling sub-module is used to fill multiple pre-formatted texts into the corresponding variables of the script template;
编译子模块,用于对填充后得到的脚本进行语法和语义分析,生成脚本语言树的数据结构,并对数据结构进行编译生成二进制可执行代码。The compilation sub-module is used to analyze the syntax and semantics of the filled script, generate the data structure of the script language tree, and compile the data structure to generate binary executable code.
进一步地,引擎打包模块23包括:Further, the engine packaging module 23 includes:
引擎绑定子模块,用于将可执行代码和目标终端平台的底层引擎进行绑定,生成可执行的应用程序;The engine binding sub-module is used to bind the executable code to the underlying engine of the target terminal platform to generate an executable application;
打包子模块,用于根据目标终端平台的规范对应用程序打包生成可在目标终端平台上运行的目标应用。The packaging sub-module is used to package the application program according to the specifications of the target terminal platform to generate a target application that can run on the target terminal platform.
本发明的终端应用的生成装置采用脚本模板结合内容配置的方法进行终端应用的开发。通过预先编制的脚本模板,用户只需要提供目标应用的相关配置信息即可生成目标应用,同时生成的目标应用可支持多个终端平台,提高了终端应用的开发效率,使得用户可以快速有效的生成终端应用。The device for generating terminal applications of the present invention uses script templates combined with content configuration methods to develop terminal applications. Through the pre-programmed script template, the user only needs to provide the relevant configuration information of the target application to generate the target application. At the same time, the generated target application can support multiple terminal platforms, which improves the development efficiency of terminal applications and enables users to quickly and effectively generate terminal application.
图3为本发明实施例的终端应用的生成系统的结构框图,如图3所示,本实施例包括:Fig. 3 is a structural block diagram of a generating system of a terminal application according to an embodiment of the present invention. As shown in Fig. 3, this embodiment includes:
应用管理装置30,用于接收用户的包含有目标应用的信息文本的应用开发请求,并将目标应用的信息文本存储在应用存储装置31中;The application management device 30 is configured to receive the user's application development request containing the information text of the target application, and store the information text of the target application in the application storage device 31;
应用存储装置31,用于存储目标应用的信息文本;An application storage device 31, configured to store the information text of the target application;
终端应用的生成装置32,用于根据应用存储装置31存储的目标应用的信息文本获取目标应用的配置信息,将配置信息填充入预先编制的脚本模板的对应变量中,并对填充后得到的脚本进行编译生成可执行代码,脚本模板为能够实现目标应用功能的可执行文件,利用可执行代码生成在目标终端平台上可执行的应用程序,并对应用程序打包生成目标应用。The generating device 32 of the terminal application is used to obtain the configuration information of the target application according to the information text of the target application stored in the application storage device 31, fill the configuration information into the corresponding variables of the pre-programmed script template, and modify the script obtained after filling Perform compilation to generate executable code, the script template is an executable file capable of realizing the target application function, use the executable code to generate an executable application program on the target terminal platform, and package the application program to generate the target application.
其中,应用管理装置30与开发用户交互,主要负责接收用户的应用开发请求,应用开发请求中包括有目标应用的信息文本,应用管理装置30将用户提交的目标应用的信息文本进行初步的验证后存储进应用存储装置31中等待后一步的处理;同时也负责将生成的目标应用反馈给开发用户。Among them, the application management device 30 interacts with the development user, and is mainly responsible for receiving the user's application development request. The application development request includes the information text of the target application, and the application management device 30 performs preliminary verification on the information text of the target application submitted by the user. It is stored in the application storage device 31 and waits for the next step of processing; meanwhile, it is also responsible for feeding back the generated target application to the development user.
应用存储装置31主要用于存放各个应用的开发相关数据,存储内容包括:用户提交的目标应用的信息文本,生成后的目标应用。应用存储装置31将存储的目标应用的信息文本发送给终端应用的生成装置32。The application storage device 31 is mainly used to store the development-related data of each application, and the storage content includes: the information text of the target application submitted by the user, and the generated target application. The application storage device 31 sends the stored information text of the target application to the terminal application generation device 32 .
终端应用的生成装置32是终端应用的生成系统的核心装置,它将用户提交的目标应用的信息文本自动和对应的脚本模板结合:信息文本中包括有目标应用的配置信息,但是这些配置信息的格式可能不符合脚本模板的规定,因此需要先对该信息文件进行分析、提取和重组,得到符合脚本模板规定的格式的多个文件,该多个文件中包含有目标应用的配置信息,将上述多个文件填充入脚本模板的相应变量之中,之后终端应用的生成装置32将填充后得到的脚本动态编译出二进制可执行编码,然后与目标终端平台的底层引擎绑定,最终在目标终端平台上打包生成出可以安装运行的目标应用。终端应用的生成装置32将生成的目标应用存储在应用存储装置31中,由应用管理装置30将生成的目标应用反馈给开发用户。The terminal application generation device 32 is the core device of the terminal application generation system, which automatically combines the information text of the target application submitted by the user with the corresponding script template: the information text includes the configuration information of the target application, but the configuration information of these configuration information The format may not meet the requirements of the script template. Therefore, the information file needs to be analyzed, extracted, and reorganized first to obtain multiple files in the format specified by the script template. The multiple files contain the configuration information of the target application. A plurality of files are filled into the corresponding variables of the script template, and then the generating device 32 of the terminal application dynamically compiles the filled script into a binary executable code, and then binds it to the bottom engine of the target terminal platform, and finally generates a binary executable code on the target terminal platform. The above package generates a target application that can be installed and run. The terminal application generation device 32 stores the generated target application in the application storage device 31, and the application management device 30 feeds back the generated target application to the development user.
下面结合图3所示的系统,以终端平台为手机平台、目标应用为手机应用为例,对本发明的终端应用的生成方法进行进一步介绍,本发明实施例中,首先需要生成脚本模板,脚本模板的生成过程如下:首先调用API(ApplicationProgrammingInterface,应用程序编程接口),创建脚本释码器;随后注册手机应用需要使用的脚本函数库文件,再调用API,加载脚本文件生成脚本模板,之后加载脚本分析器对脚本模板进行分析和检验。生成的脚本模板可以实现手机应用的功能,其中包括多个待设置的变量,通过对变量赋值,可以得到多种不同效果的手机应用。比如电子书阅读应用的脚本模板中包括对应翻页、目录等功能的多个变量,通过将该多个变量赋不同的值,最后可以得到完全不同的翻页效果和目录功能的多个电子书阅读应用。Below in conjunction with the system shown in Figure 3, taking the terminal platform as the mobile phone platform and the target application as the mobile phone application as an example, the method for generating the terminal application of the present invention is further introduced. In the embodiment of the present invention, firstly, a script template needs to be generated. The generation process is as follows: first call the API (Application Programming Interface, application programming interface), create a script interpreter; then register the script function library file that the mobile application needs to use, then call the API, load the script file to generate a script template, and then load the script analysis The script template is analyzed and validated by the The generated script template can realize the functions of the mobile phone application, including a plurality of variables to be set, and by assigning values to the variables, a variety of mobile phone applications with different effects can be obtained. For example, the script template of an e-book reading application includes multiple variables corresponding to functions such as page turning and table of contents. By assigning different values to these multiple variables, you can finally obtain multiple e-books with completely different page turning effects and table of contents functions. Read the application.
在编制好脚本模板后,本发明的终端应用的生成装置执行的步骤如下:After compiling the script template, the steps performed by the generating device of the terminal application of the present invention are as follows:
步骤S1:内容配置Step S1: Content Configuration
终端应用的生成装置32首先要对用户提供的手机应用的信息文本作分析和提取,用户提供的手机应用的信息文本包括有手机应用的配置信息,以手机应用为在安卓平台上运行的电子书阅读应用为例,配置信息包括电子书外观的图片,文本的内容等。首先将手机应用的信息文本拆分成预先设定的多个不同的内容要素,比如封面、标题、章节、目录、人物等。在提取出不同的内容要素后,需要重新对内容要素进行编排和重组,使内容形式符合脚本模板所规定的要求,比如生成多个预设格式的文本,该文本包括有手机应用的配置信息,又符合脚本模板所规定的要求,可以直接填充入脚本模板的对应变量中。The generating device 32 of the terminal application first needs to analyze and extract the information text of the mobile phone application provided by the user. The information text of the mobile phone application provided by the user includes configuration information of the mobile phone application, and the mobile phone application is an e-book running on the Android platform. Taking the reading application as an example, the configuration information includes the picture of the appearance of the e-book, the content of the text, and so on. Firstly, the information text of the mobile phone application is split into a plurality of different preset content elements, such as cover, title, chapter, table of contents, characters and so on. After extracting different content elements, it is necessary to re-arrange and reorganize the content elements so that the content form meets the requirements specified in the script template, such as generating text in multiple preset formats, which includes configuration information for mobile applications, It also meets the requirements specified in the script template, and can be directly filled into the corresponding variables of the script template.
步骤S2:模板组合Step S2: Template combination
终端应用的生成装置32将上述多个预设格式的文本填充入预先编制的脚本模板的不同变量中,此步骤可以采用模式匹配和模糊智能等技术以提高匹配和填充效率。其中,模式匹配技术可以快速匹配重组的信息文本中的元信息(例如标题,作者等),而模糊智能技术则根据信息文本的上下文以及环境信息动态识别出重组的信息文本分散的元信息,然后填入脚本模板的相关变量之中。The generation device 32 of the terminal application fills the above-mentioned multiple preset texts into different variables of the pre-programmed script template. In this step, techniques such as pattern matching and fuzzy intelligence can be used to improve matching and filling efficiency. Among them, the pattern matching technology can quickly match the meta information (such as title, author, etc.) in the reorganized information text, and the fuzzy intelligence technology can dynamically identify the scattered meta information of the reorganized information text according to the context and environmental information of the information text, and then Fill in the relevant variables of the script template.
以手机应用为在安卓平台上运行的电子书阅读应用为例,预先编制的脚本模板可以实现电子书阅读应用,该脚本模板的多个变量用于设置电子书阅读应用的配置信息,比如预设格式的文本包含有翻页效果、目录等功能的配置信息,将预设格式的文本填充入脚本模板的相关变量之中,则填充后的脚本模板就能够实现相应的翻页效果和目录功能。Taking the mobile phone application as an e-book reading application running on the Android platform as an example, the pre-compiled script template can realize the e-book reading application, and the multiple variables of the script template are used to set the configuration information of the e-book reading application, such as preset The formatted text contains configuration information for functions such as page-turning effects and catalogs. If the text in the preset format is filled into the relevant variables of the script template, the filled script template can realize the corresponding page-turning effect and catalog functions.
终端应用的生成装置32利用脚本编译器对填充完整的脚本进行语法和语义分析,产生中间过程的脚本语言树的数据结构,并对该数据结构进一步编译生成二进制可执行代码,采用此种脚本编译的技术可以把抽象的脚本语言逻辑编译转换成效率高的可执行代码。与其他将脚本转换为C语言或Java语言的技术不同,此脚本编译技术不会带来语言转换和翻译错误,而且可执行代码的执行效率更高。The generation device 32 of the terminal application uses the script compiler to analyze the syntax and semantics of the completed script, generates the data structure of the script language tree of the intermediate process, and further compiles the data structure to generate binary executable code. The technology can convert abstract scripting language logic compilation into efficient executable code. Unlike other technologies that convert scripts into C or Java, this script compilation technology does not introduce language conversion and translation errors, and the execution of executable code is more efficient.
本发明实施例通过预先编制的脚本模板固化了大量应用逻辑,根据不同的手机应用,将用户提供的信息文件组合不同的脚本模板,可以实现不同类型的功能,比如电子书阅读应用的脚本模板中的翻页、目录等功能结合不同的书本图片和文本内容,最后可以形成完全不同的翻页效果和目录功能。In the embodiment of the present invention, a large amount of application logic is solidified through pre-programmed script templates. According to different mobile phone applications, information files provided by users can be combined with different script templates to realize different types of functions, such as in the script templates of e-book reading applications. Combined with different book pictures and text content, the functions of page turning and catalog can form completely different page turning effects and catalog functions.
步骤S3:引擎打包Step S3: Engine packaging
底层引擎负责可执行代码在最终具体手机平台上的运行,所以对于手机应用来说,针对不同的手机平台需要将可执行代码绑定不同的底层引擎,并且进行手机平台打包。The underlying engine is responsible for running the executable code on the final specific mobile phone platform. Therefore, for mobile phone applications, it is necessary to bind the executable code to different underlying engines for different mobile phone platforms and package the mobile phone platform.
终端应用的生成装置32将步骤S2中生成的二进制可执行代码和目标手机平台的底层引擎进行绑定,以确保目标手机平台的所以底层功能可以被正确执行,产生一可执行的应用程序;根据目标手机平台的规范把该应用程序打包生成可以在目标手机平台上安装运行的手机应用。以手机应用为在安卓平台上运行的电子书阅读应用为例,将步骤S2中生成的二进制可执行代码和安卓平台的底层引擎进行绑定,产生一可执行的应用程序,之后根据安卓平台的规范把该应用程序打包即可得到可以在安卓平台上安装运行的电子书阅读应用。The generation device 32 of terminal application binds the binary executable code generated in step S2 and the underlying engine of the target mobile phone platform, so that the underlying functions of the target mobile phone platform can be correctly executed to ensure that an executable application program is produced; according to The specifications of the target mobile phone platform package the application program to generate a mobile phone application that can be installed and run on the target mobile phone platform. Taking the mobile phone application as an e-book reading application running on the Android platform as an example, the binary executable code generated in step S2 is bound to the underlying engine of the Android platform to generate an executable application program, and then according to the Android platform According to the specification, the application program can be packaged to obtain an e-book reading application that can be installed and run on the Android platform.
通过上述步骤S1-S3,终端应用的生成装置32生成用户所请求的手机应用,该手机应用可以在目标手机平台上安装运行。终端应用的生成装置32将生成的手机应用存储在应用存储装置31中,由应用管理装置30将生成的手机应用反馈给开发用户。Through the above steps S1-S3, the terminal application generating device 32 generates the mobile phone application requested by the user, and the mobile phone application can be installed and run on the target mobile phone platform. The terminal application generation device 32 stores the generated mobile phone application in the application storage device 31, and the application management device 30 feeds back the generated mobile phone application to the developer user.
本发明将手机应用抽象分解为信息文本、脚本模板、执行引擎三个层面,相应地,将终端应用的生成过程分解为:内容配置、脚本模板结合和底层引擎打包三个步骤,本发明中的脚本模板和执行引擎都是预先编制完成的,可直接支持多个手机平台,这样在生成具体的手机应用时,只需要将手机应用的信息文本与脚本模板和执行引擎作一些配置和绑定工作。因此,用户在需要生成手机应用时,只需要提供固定格式的信息文本,即可根据相应的脚本模板生成大量不同的手机应用,并可以运行在不同屏幕和不同平台的手机上,不必再进行大量功能测试验证以及手机终端适配等工作,在升级时也不必重复进行开发,提高了手机应用的开发效率,同时解决了现有方案在智能机平台不兼容、语言表达简单、规范制定和技术前景不明等问题,使得用户可以快速有效的生成手机应用。The present invention abstractly decomposes the mobile phone application into three levels of information text, script template, and execution engine. Both the script template and the execution engine are pre-programmed and can directly support multiple mobile phone platforms. In this way, when generating a specific mobile phone application, it is only necessary to configure and bind the information text of the mobile application with the script template and execution engine . Therefore, when users need to generate mobile phone applications, they only need to provide information text in a fixed format, and a large number of different mobile phone applications can be generated according to the corresponding script templates, and can run on mobile phones with different screens and different platforms. Functional test verification and mobile phone terminal adaptation work do not need to be repeatedly developed during upgrades, which improves the development efficiency of mobile phone applications, and at the same time solves the incompatibility of existing solutions on smart phone platforms, simple language expression, specification formulation and technical prospects Unknown problems, so that users can quickly and effectively generate mobile phone applications.
此说明书中所描述的许多功能部件都被称为模块,以便更加特别地强调其实现方式的独立性。Many functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementation.
本发明实施例中,模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此,所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。In the embodiments of the present invention, the modules may be implemented by software so as to be executed by various types of processors. An identified module of executable code may, by way of example, comprise one or more physical or logical blocks of computer instructions which may, for example, be structured as an object, procedure, or function. Notwithstanding, the executable code of an identified module need not be physically located together, but may include distinct instructions stored in different bits which, when logically combined, constitute the module and implement the specified Purpose.
实际上,可执行代码模块可以是单条指令或者是许多条指令,并且甚至可以分布在多个不同的代码段上,分布在不同程序当中,以及跨越多个存储器设备分布。同样地,操作数据可以在模块内被识别,并且可以依照任何适当的形式实现并且被组织在任何适当类型的数据结构内。所述操作数据可以作为单个数据集被收集,或者可以分布在不同位置上(包括在不同存储设备上),并且至少部分地可以仅作为电子信号存在于系统或网络上。Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs and across multiple memory devices. Likewise, operational data may be identified within modules, and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed in different locations (including on different storage devices), and may exist, at least in part, only as electronic signals on a system or network.
在模块可以利用软件实现时,考虑到现有硬件工艺的水平,所以可以以软件实现的模块,在不考虑成本的情况下,本领域技术人员都可以搭建对应的硬件电路来实现对应的功能,所述硬件电路包括常规的超大规模集成(VLSI)电路或者门阵列以及诸如逻辑芯片、晶体管之类的现有半导体或者是其它分立的元件。模块还可以用可编程硬件设备,诸如现场可编程门阵列、可编程阵列逻辑、可编程逻辑设备等实现。When the module can be realized by software, considering the level of the existing hardware technology, the module that can be realized by software, regardless of the cost, those skilled in the art can build the corresponding hardware circuit to realize the corresponding function. The hardware circuit includes conventional very large scale integration (VLSI) circuits or gate arrays as well as existing semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, and the like.
在本发明各方法实施例中,所述各步骤的序号并不能用于限定各步骤的先后顺序,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,对各步骤的先后变化也在本发明的保护范围之内。In each method embodiment of the present invention, the sequence number of each step can not be used to limit the order of each step. For those of ordinary skill in the art, the order of each step can be changed without paying creative work. Also within the protection scope of the present invention.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110398909.3A CN103135979B (en) | 2011-12-05 | 2011-12-05 | The generation method of terminal applies, Apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110398909.3A CN103135979B (en) | 2011-12-05 | 2011-12-05 | The generation method of terminal applies, Apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103135979A CN103135979A (en) | 2013-06-05 |
CN103135979B true CN103135979B (en) | 2016-07-06 |
Family
ID=48495855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110398909.3A Active CN103135979B (en) | 2011-12-05 | 2011-12-05 | The generation method of terminal applies, Apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103135979B (en) |
Families Citing this family (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095207B (en) * | 2014-04-18 | 2019-05-28 | 阿里巴巴集团控股有限公司 | Retrieval, the method and apparatus for obtaining application software content |
CN105094764B (en) * | 2014-05-04 | 2019-01-08 | 中国移动通信集团公司 | The generation method and device of electronic apparatus application |
CN105335132B (en) * | 2014-06-13 | 2020-03-24 | 阿里巴巴集团控股有限公司 | Method, device and system for customizing application program function |
KR101629578B1 (en) * | 2014-12-15 | 2016-06-13 | 현대오트론 주식회사 | Method of generating rte code and apparatus performing the same |
CN104539697B (en) * | 2014-12-26 | 2018-10-19 | 北京新学堂网络科技有限公司 | A kind of client, server and the method for making Android mobile application |
CN104834515A (en) * | 2015-03-30 | 2015-08-12 | 百度在线网络技术(北京)有限公司 | Generation method of object file |
CN104965714A (en) * | 2015-07-27 | 2015-10-07 | 广州杰赛科技股份有限公司 | Code generation method and system of application software |
CN105335200B (en) * | 2015-11-24 | 2019-05-07 | 小米科技有限责任公司 | Method for upgrading system and device |
CN105446796B (en) * | 2015-11-30 | 2018-10-23 | 金蝶软件(中国)有限公司 | A kind of analogy method and equipment of mobile light application |
CN105867959A (en) * | 2015-12-01 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Binary file integration method and device |
CN107193615B (en) * | 2017-06-29 | 2020-12-04 | 北京全域医疗技术集团有限公司 | Project code information updating and deploying method and device |
CN108304194B (en) * | 2017-09-01 | 2021-08-20 | 潍柴动力股份有限公司 | Method, device and electronic device for generating a program |
CN107783763A (en) * | 2017-09-29 | 2018-03-09 | 乐蜜有限公司 | A kind of application program generation method, device, server and readable storage medium storing program for executing |
CN110058894B (en) * | 2018-01-18 | 2022-05-24 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer program product for executing applications in a hybrid cloud |
CN109558146A (en) * | 2018-11-12 | 2019-04-02 | 泰康保险集团股份有限公司 | Application issued method, apparatus and storage medium |
CN109978629B (en) * | 2019-03-29 | 2021-07-09 | 北京金山安全软件有限公司 | Advertisement putting method and device, electronic equipment and storage medium |
CN110457064B (en) * | 2019-07-16 | 2023-05-30 | 中盈优创资讯科技有限公司 | Method and device for generating network cutover script |
CN110532027B (en) * | 2019-09-09 | 2025-01-24 | 深圳传音控股股份有限公司 | Terminal installation package processing method, system, terminal and readable storage medium |
CN110888641B (en) * | 2019-11-15 | 2024-04-05 | 深圳市宏电技术股份有限公司 | Script automatic generation method and device, server and storage medium |
CN111158797A (en) * | 2019-12-26 | 2020-05-15 | 第四范式(北京)技术有限公司 | Method, system and engine device for operating artificial intelligence application |
CN111596935A (en) * | 2020-04-27 | 2020-08-28 | 五八有限公司 | Script packing method and device, electronic equipment and storage medium |
CN111813377A (en) * | 2020-06-15 | 2020-10-23 | 新奥数能科技有限公司 | A method and device for automatically generating an application program |
WO2022006810A1 (en) * | 2020-07-09 | 2022-01-13 | 深圳市汇顶科技股份有限公司 | Data management method and apparatus, electronic element, and terminal device |
CN112367206B (en) * | 2020-11-12 | 2021-10-22 | 珠海格力电器股份有限公司 | Configuration data processing method, device and system |
CN114490103B (en) * | 2020-11-12 | 2025-06-13 | 亚信科技(中国)有限公司 | Method, device and electronic device for calling operating system interface |
CN114489850B (en) * | 2022-01-20 | 2023-08-22 | 中广核工程有限公司 | Design software calling method, device, computer equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101950257A (en) * | 2010-09-26 | 2011-01-19 | 中兴通讯股份有限公司 | Mobile phone application development method and system |
CN102231106A (en) * | 2011-05-27 | 2011-11-02 | 王志勇 | Method for generating application code of mobile and general development platform |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8769553B2 (en) * | 2008-07-18 | 2014-07-01 | Sybase, Inc. | Deploy anywhere framework for heterogeneous mobile application development |
-
2011
- 2011-12-05 CN CN201110398909.3A patent/CN103135979B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101950257A (en) * | 2010-09-26 | 2011-01-19 | 中兴通讯股份有限公司 | Mobile phone application development method and system |
CN102231106A (en) * | 2011-05-27 | 2011-11-02 | 王志勇 | Method for generating application code of mobile and general development platform |
Also Published As
Publication number | Publication date |
---|---|
CN103135979A (en) | 2013-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103135979B (en) | The generation method of terminal applies, Apparatus and system | |
CN106371829B (en) | Template framework design method and system based on modularization idea | |
Hoozemans et al. | Fpga acceleration for big data analytics: Challenges and opportunities | |
WO2021098392A1 (en) | Application deployment method and apparatus, electronic device and storage medium | |
Nugteren et al. | Introducing'Bones' a parallelizing source-to-source compiler based on algorithmic skeletons | |
US7318215B1 (en) | Stored procedure interface language and tools | |
CN113031932B (en) | Project development method, apparatus, electronic device and storage medium | |
CN102693121A (en) | Automatic developing and manufacturing system of cross-platform mobile phone application and implementation method for cross-platform mobile phone application | |
CN102314358A (en) | Method for deploying conventional applications on cloud platform in SOA (service oriented architecture) way | |
CN113407362A (en) | SOMEIP communication intermediate layer implementation method and system based on SOA architecture of vehicle-mounted Android system | |
CN111880863B (en) | Application program running method and device, electronic equipment and storage medium | |
US12008353B2 (en) | Parsing tool for optimizing code for deployment on a serverless platform | |
CN103631645A (en) | Digital family middleware system based on digital medical treatment | |
CN117435175B (en) | Three-dimensional GIS (geographic information System) visual engine packaging method and system | |
CN117608529A (en) | AUROSAR application layer architecture generation method, device and electronic equipment | |
Klöckner et al. | GPU scripting and code generation with PyCUDA | |
Acosta et al. | Extending paralldroid with object oriented annotations | |
Posadas et al. | System synthesis from UML/MARTE models: The PHARAON approach | |
CN114594957B (en) | Method and device for customizing WebView in depth and providing independent WebView AAR externally | |
CN114461186A (en) | A method for automatically compiling and running C/C++ code for Huawei Ascend accelerator card | |
Lavrijsen | Python in the Cling World | |
Alls | High-Performance Programming in C# and. NET | |
CN104063229A (en) | Digital family middleware system | |
CN113867728A (en) | A converged interface response data, component-based development framework applied to the third-generation modern web front-end | |
CN112527320A (en) | Method, device and storage medium for deploying application system based on browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |