A software source code language translation system and method

A language translation and source code technology, applied in the field of software source language translation systems, can solve the problems of inability to meet the requirements of the target language program structure and writing style, waste, repetitive development of functions, etc., and achieve the effect of full customizability

Active Publication Date: 2017-07-11
浙江网新恒天软件有限公司
View PDF3 Cites 0 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
  • A software source code language translation system and method
  • A 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 includes: a program object model management module: used to manage the program object model as an intermediate product of translation, and the management of the program object model includes model creation, storage, Query and modification; conversion rule library: used to manage source code analysis rules, model conversion rules and code generation rules; source code analysis module: used to execute source code analysis rules, and convert software source code text into an equivalent structured program object model; Program object model conversion engine: used to execute model conversion rules and convert program object models; target language generation module is used to execute code generation rules and generate target language source code. By introducing configurable rules, the present invention can reuse the general function of source code language translation and provide sufficient customizability.

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 Patents(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