MVC (model view controller) mode-based language transformation method and equipment for program

A programming language and language technology, applied in the Internet field, can solve the problems of coding logic and business scenarios without corresponding conversion, consuming human resources and time resources, delaying or interrupting reconstruction projects, etc., to reduce development time and Resource consumption, improved efficiency and flexibility, good scalability effects

Active Publication Date: 2015-04-29
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) Limitations: limited to the conversion of the old and new versions of a single language or the conversion of the old and new version of the project structure of a single programming tool;
[0005] (2) One-sidedness: it is limited to simple programming language conversion, and no corresponding conversion is made for coding logic and business scenarios;
[0006] (3) Non-automation: This kind

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • MVC (model view controller) mode-based language transformation method and equipment for program
  • MVC (model view controller) mode-based language transformation method and equipment for program
  • MVC (model view controller) mode-based language transformation method and equipment for program

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0031] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0032] figure 1 A schematic diagram of a conversion device for language conversion of programs based on the MVC mode according to one aspect of the present invention; wherein the conversion device includes a device for determining the initial programming language used by the initial program to be converted (hereinafter referred to as "Initial language determining device 1"), wherein the initial programming language includes an initial language category and an initial programming framework; it is used to analyze the coding structure of the initial program according to the MVC mode to determine the conversion in the coding Content and non-converted content device (hereinafter referred to as "content determination device 2"); used to perform language conversion on the converted content according to the target programming language, combined with the converted content...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention aims to provide an MVC (model view controller) mode-based language transformation method and equipment for a program. The transformation equipment, after determining the initial programming language adopted by the to-be-transformed initial program, analyses encoding structure of initial program according to an MVC mode so as to determine the transformation content and non-transformation content during encoding, language transformation is performed on the transformation content according to the target programming language by combining the transformation content, so as to generate one or more target encoding files, and frame transformation is finally performed on the non-transformation content and the target encoding file so as to generate a target program corresponding to the initial program. Compared with the prior art, the MVC (model view controller) mode-based language transformation method and equipment for the program can support the transformation among a plurality of languages, and support continuous increasing of language and frame editions; the expansibility is better; by adopting the method and equipment, the program transformation efficiency is improved, and the development time and resource consumption are reduced.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a language conversion technology for programs based on the MVC pattern. Background technique [0002] With the continuous development of the Internet and the growth of Internet companies, there are countless web-based projects (such as company website systems, etc.). However, due to various reasons, such as different requirements when developing projects, different conditions when developing projects, etc., the development methods of each project are not uniform, resulting in difficulties in business reuse or merging, and excessive human and time resources are consumed in redevelopment. [0003] The programming language conversion method in the prior art only supports the conversion between the old and new versions of a single programming language or between the old and new versions of a single programming tool, or directly manually splits the business logic and redevelops i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 胡晓赟熊亚军王志陈云飞
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products