Mixed reference method and mixed reference system for items with different programming languages of platform
A programming language and project technology, applied in memory systems, program control design, program control devices, etc., can solve problems such as development and debugging overhead, and achieve the effect of facilitating cross-language development
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Such as figure 1 As shown, a mixed reference method for projects with different programming languages on the same platform, the method includes:
[0041] S1. Establish a project directory structure.
[0042] Such as figure 2 As shown, the project directory structure includes: information subdirectory info, source file directory src, and target subdirectory target; source file directory src contains at least two language subdirectories, and each language subdirectory contains at least one project. Each project contains the project's source files written in the corresponding programming language.
[0043] S2, read the source file of each project, compile it into an intermediate file with the intermediate language belonging to the platform, and store it in the target subdirectory target.
[0044] In the process of actual use, there are various platforms, for example, .NET is Microsoft's (Microsoft) XML Web service-oriented platform, jvm platform, and so on. Each pla...
Embodiment 2
[0051] Such as figure 1 As shown, a mixed reference method for projects with different programming languages on the same platform, the method includes:
[0052] S1. Establish a project directory structure.
[0053] Such as figure 2 As shown, the project directory structure includes: information subdirectory info, source file directory src, target subdirectory target, and build configuration subdirectory build config.
[0054] Wherein, the source file directory src contains at least two language subdirectories, each language subdirectory contains at least one project, and each project contains source files of projects written in a corresponding programming language.
[0055] The build configuration subdirectory build config contains at least one project configuration information. Each project configuration information includes: the project name of the project, the programming language used, the version of the programming language used, and the reference relationship infor...
specific Embodiment
[0076] The project written in c# language is as follows:
[0077]
[0078] The project written in f# language is as follows:
[0079]
[0080] The resulting dlls are consoleapplication1.dll and library1.dll respectively, and the read il located in the target subdirectory target is:
[0081]
[0082]
[0083]
[0084]
[0085] The metadata information is:
[0086] F#:
[0087] class Library1.HelloClass
[0088] .property instance string Hello()
[0089] .property instance string X()
[0090] Among them, Library1.HelloClass is the class name to be retrieved; hello and x are the function names to be retrieved C#:
[0091] class ConsoleApplication1. Program
[0092] .method private static void Main
[0093] Among them, ConsoleApplication1.Program is the name of the class to be retrieved; main is the name of the function to be retrieved.
[0094] The above is a mixed reference method disclosed in Embodiment 2 for projects with different programming languag...
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