Software source code language translation system and method

A technology of language translation and source code, applied in the field of software source code language translation system, can solve problems such as failure to meet the requirements of target language program structure and writing style, waste, and repeated function development, etc., and achieve the effect of fully customizable capabilities

Active Publication Date: 2015-03-04
浙江网新恒天软件有限公司
View PDF3 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are the following problems to be solved in the development of automatic translation tools: First, due to the variety of source languages ​​and target languages ​​that require translation, developing a set of automatic translation tools for each combination will inevitably lead to the waste of repeated functional development
Secondly, even if the source language to be translated is the same, the translation results of the same style cannot meet the requirements of different users for the structure and writing style of the target language program

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
  • Software source code language translation system and method
  • Software source code language translation system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0025] Such as figure 1 Shown, a kind of software source code language translation system of the present invention comprises:

[0026] Program object model management module: used to manage the program object model as an intermediate product of translation, the management of the program object model includes the creation, storage, query and modification of the model; wherein, the program object model includes a syntax tree and a symbol information table; The management of syntax tree includes creating syntax tree nodes, setting syntax tree node attributes, reading syntax tree node attributes, setting parent-child relationship between syntax tree nodes, traversing syntax tree nodes according to parent-child relationship between syntax tree nodes; managing symbol information table Including creating basic symbol information table, creating symbol object, delet...

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 discloses a software source code language translation system and method. The system comprises a program object model management module, a program object model, a conversion rule base, a source code resolving module, a program object model conversion engine and a target language generating module, wherein the program object model management module is used for managing the program object model used as a translation intermediate product, the management on the program object model includes the model creating, storage, inquiry and modification, the conversion rule base is used for managing the source code resolving rule, the model conversion rule and the code generating rule, the source code resolving module is used for executing the source code resolving rule and converting a software source code text into an equivalent structurized program object model, the program object model conversion engine is used for executing the model conversion rule and performing conversion on the program object model, and the target language generating model is used for executing the code generating rule and generating the target language source code. The system and the method have the advantages that configurable rules are introduced, the universal function of the source code language translation can be reused, and the sufficient customization capability can be provided.

Description

technical field [0001] The invention relates to the field of computer program language compilation, in particular to a software source code language translation system and method. Background technique [0002] During the development of computer software, the programming language used to develop software is constantly updated. So far the software field has accumulated a very large number of software programs written in early programming languages. It is inefficient to maintain and extend software written in older programming languages, and fewer and fewer programmers are proficient in those languages. In order to promote continuous business development, it is necessary to translate software programs from old programming languages ​​to equivalent new programming languages. [0003] The process of program language translation is cumbersome, monotonous and repetitive, and error-prone, so it is suitable for automatic translation tools. The development of automatic translation ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45G06F9/44G06F17/30
Inventor 杨朝晖马满材李洋郑建东周波李善平郑驰宇孙建伶丁彭云
Owner 浙江网新恒天软件有限公司
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