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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com