Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Programming language capable of cross-language reusing

A programming language and language technology, applied in the direction of program control devices, etc., can solve the problems of repeated development costs, slow execution, and low operating efficiency, and achieve the effects of reducing code dependencies, avoiding repeated inclusion, and low hardware requirements

Inactive Publication Date: 2013-01-16
山东国软信息技术有限公司 +1
View PDF0 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] There are thousands of computer programming languages, although they all have their own advantages and characteristics; but the codes written by them all have two problems: poor cross-language reusability and cross-platform poor reusability
[0003] The first problem, poor cross-language reusability refers to the fact that some algorithms (such as single-source shortest path, greedy algorithm, etc.) and certain types of applications (such as 3D games) In programming, the processing flow of each language is almost the same; for example, the general program flow of a 3D game is "algorithmic modeling -> rendering -> algorithmic modeling -> rendering ->..." such a cycle
In this case, if you want to achieve multi-language development, although the algorithm is the same, you cannot reuse the algorithm written in other languages, which will cause repeated development costs, and may be extremely expensive
[0004]As the technical background of the first question, although the UML (Unified Modeling Language, Unified Modeling Language or Standard Modeling Language) and PDL (Program Design Language) developed by people , design programming language), is considered to be able to achieve cross-language modeling and reuse, but these languages ​​are in the design stage of software development, are not considered software code
[0005] The second problem is that many applications need to cross multiple platforms, and some platforms (such as iOS, WindowsPhone, etc.) do not support Java, and some platforms (such as iOS, Android) If it does not support C++, it is impossible to develop applications for multiple terminals with a unified language, and cross-platform transplantation may incur expensive costs.
However, scripting languages ​​are interpreted and parasitic, cannot develop complete software independently, and have low operating efficiency, long syntax (compared to this language), error-prone, difficult to implement user-level thread libraries and complex recursive applications, and cannot be converted into other languages, and cannot be directly compiled into software products
Compared with the present invention, these languages ​​also have disadvantages such as grammar diffusion, excessive use of symbols, cumbersome precision representation, lack of standard function libraries, low development efficiency, slow execution, etc.

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
  • Programming language capable of cross-language reusing
  • Programming language capable of cross-language reusing
  • Programming language capable of cross-language reusing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] Use the present invention to define the code of a function that takes an absolute value to illustrate the grammar rules of the function:

[0056] / / Define a function that takes the absolute value

[0057] ABS(x)

[0058] if (x<0)

[0059] x=-x

[0060] retrun x

[0061] The above code shows that there is no need for modifiers before the function name, the first letter must be capitalized, there is no need to define the function type, and it must be terminated with return.

Embodiment 2

[0063] Using the standard development library of the present invention to embed this language into C++ and JAVA, the writing method is:

[0064] extern "TML" {

[0065] / / Write TML code directly

[0066] }

[0067] It is written similarly in other languages.

Embodiment 3

[0069] A cross-platform 3D fishing game example project developed by the present invention, the project source code and directory structure are as follows figure 2 shown, the specific steps are as follows:

[0070] step 1: Use the IDE of the present invention to build a project, the name is generally the project name or other meaningful English abbreviations, here named 3Dgame;

[0071] Step 2: In the creation options, select multi-platform and set parameters;

[0072] Step 3: Click to create, such as figure 2 As shown, a directory named 3Dgame will be obtained, and 4 basic directories will be established under the 3Dgame directory: platform (the standard development library of the platform selected in step 2 has been generated), product (used to store the final product, including compilation Generate files, picture resources, music resources and configuration files), project (the project file of the platform selected in step 2 has been generated, general Windows, Andr...

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 relates to a programming language capable of cross-language reusing, and discloses a method for programming and developing software application programs by using a group of certain brief term and syntax rule with natural language semanteme. Through the description of multiple programming language families and the display method of the same thought realizing parts in multiple language development of certain software with an abstract special function, the cross-platform, cross-compiling, convertible and embeddable unified development is realized. Through the compiling tool disclosed by the invention, the same set of codes programmed by the language can be compiled into the applications with different states under different platforms; and the platform characteristics are realized by corresponding compiling tools. Through the converting tool disclosed by the tool, the codes programmed by the language can be converted into other languages as C++, Java, C#, Pascal and Obj-C, and can also be converted into the codes directly executed by the ARM embedded chip. Through the standard developing library disclosed by the invention, the language can be directly embedded into other languages for mixed programming. Through the IDE and the simulator disclosed by the invention, the cross-platform debugging and simulation can be realized.

Description

technical field [0001] The present invention relates to a programming language for software application development, in particular to a set of terms, grammar rules, standard development libraries, (cross-language) development tools (including IDE, simulator, conversion tools and build tools). Background technique [0002] There are thousands of computer programming languages, although they all have their own advantages and characteristics; but the codes they write all have two problems: poor cross-language reusability and poor cross-platform reusability. [0003] The first problem, poor cross-language reusability means that in the programming of certain algorithms (such as single-source shortest path, greedy algorithm, etc.) and certain types of applications (such as 3D games), the processing flow of each language is almost the same; The program flow is "algorithm modeling->rendering->algorithm modeling->rendering->…" such a loop. In this case, if you want to a...

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 山东国软信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products