# US 2010/0146492 A1 · Translation of programming code

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0146492 A1
- Document ID: US20100146492A1
- Status: Published application
- Kind: A1
- Application number: 12/631,311
- Filed: 2009-12-04
- Published: 2010-06-10
- Earliest claimed: 2008-12-04
- Assignees: Real Dice Inc.
- Inventors: Yotam Shacham; Guy Ben-Artzi; Alexie Alexevitch; Amatzia Ben-Artzi; Tal Lavian; Alexander Glyakov; Russell W. McMahon; Yehuda Levi
- Web page: https://patentgrep.com/patent/US20100146492A1

## CPC

- G06F 8/76: Adapting program code to run in a different environment; Porting
- G06F 8/315: {Object-oriented languages}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the invention may provide methods and/or systems for converting a source application to a platform-independent application. Source programming language code of the source application may be translated to target programming language code of the platform-independent application. The source programming language code may comprise Connected Limited Device Configuration (CLDC) code, and the platform-independent programming language may be independent of one or more device platforms. Further, one or more source resources associated with the source application may be converted to one or more target resources.

## Claims

### Claim 1

A method for converting a source application to a platform-independent application, the method comprising:
translating source programming language code of the source application to target programming language code of the platform-independent application, wherein the source programming language code comprises Connected Limited Device Configuration (CLDC) code, and wherein the target programming language is independent of one or more device platforms; and
converting one or more source resources associated with the source application to one or more target resources.

### Claim 2 (depends on 1)

The method of claim 1 further comprising providing a configuration of the source application to the platform-independent application.

### Claim 3 (depends on 1)

The method of claim 1, wherein the translating the source programming language code comprises:
tokenizing one or more characters of one or more input files of the source programming language code to generate a list of tokens;
parsing the list of tokens to generate one or more document object models;
generating an environment document object model comprising the one or more document object models, wherein the one or more input files are cross-referenced within the one or more document object models of the environment document object model; and
analyzing the environment document object model to generate one or more characters of one or more output fifes of the target programming language code.

### Claim 4 (depends on 3)

The method of claim 3, wherein the analyzing the environment document object model comprises using a depth first search algorithm.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more target resources comprise one or more platform-independent resources.

### Claim 6 (depends on 1)

The method of claim 1, wherein the one or more target resources comprise one or more of an image, an audio, or a video.

### Claim 7 (depends on 1)

The method of claim 1, wherein the source programming language and the platform-independent programming language are object oriented programming languages.

### Claim 8 (depends on 1)

The method of claim 1, further comprising downloading computer-executable instructions that, if executed by a computing device, cause the computing device to execute said translating.

### Claim 9 (depends on 1)

The method of claim 1, further comprising downloading computer-executable instructions that, if executed by a computing device, cause the computing device to execute said converting.

### Claim 10 (depends on 1)

The method of claim 1, further comprising making available for downloading computer-executable instructions that, if executed by a computing device, cause the computing device to execute said translating.

### Claim 11 (depends on 1)

The method of claim 1, further comprising making available for downloading computer-executable instructions that, if executed by a computing device, cause the computing device to execute said converting.

### Claim 12

An apparatus for converting a source application to a platform-independent application, the apparatus comprising:
a code transformer configured to translate source programming language code of the source application to target programming language code of the platform-independent application, wherein the source programming language code comprises Connected Limited Device Configuration (CLDC) code, and wherein the platform-independent programming language is independent of one or more device platforms; and
a resource converter configured to convert one or more source resources associated with the source application to one or more target resources.

### Claim 13 (depends on 12)

The apparatus of claim 12 further comprising a configuration module configured to provide a configuration of the source application to the platform-independent application.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the code transformer comprises:
a document object model constructor configured to:
tokenize one or more characters of one or more input files of the source programming language code to generate a list of tokens; and
parse the list of tokens to generate one or more document object models;
an environment document object model constructor configured to generate an environment document object model comprising the one or more document object models, wherein the one or more input files are cross-referenced within the one or more document object models of the environment document object model; and
an emitter configured to analyze the environment document object model to generate one or more characters of one or more output files of the target programming language code.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the emitter is configured to analyze the environment document object model comprises using a depth first search algorithm.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein the one or more target resources comprise one or more platform-independent resources.

### Claim 17 (depends on 12)

The apparatus of claim 12, wherein the one or more target resources comprise one or more of an image, an audio, or a video.

### Claim 18 (depends on 12)

The apparatus of claim 12, wherein the source and the platform-independent programming languages are object oriented programming languages.

### Claim 19

A system for converting a source application to a platform-independent application, the system comprising:
means for translating source programming language code of the source application to target programming language code of the platform-independent application, wherein the source programming language code comprises Connected Limited Device Configuration (CLDC) code, and wherein the platform-independent programming language is independent of one or more device platforms; and
means for converting one or more source resources associated with the source application to one or more target resources.

### Claim 20 (depends on 19)

The system of claim 19 further comprising means for providing a configuration of the source application to the platform-independent application.

### Claim 21 (depends on 19)

The system of claim 19, wherein the means for translating the source programming language code comprises:
means for tokenizing one or more characters of one or more input files of the source programming language code to generate a list of tokens;
means for parsing the list of tokens to generate one or more document object models;
means for generating an environment document object model comprising the one or more document object models, wherein the one or more input files are cross-referenced within the one or more document object models of the environment document object model; and
means for analyzing the environment document object model to generate one or more characters of one or more output files of the target programming language code.

### Claim 22 (depends on 21)

The system of claim 21, wherein the means for analyzing the environment document object model comprises means for using a depth first search algorithm.

### Claim 23

A computer-readable medium having computer-executable instructions that, if executed by a computing device, cause the computing device to implement a method for converting a source application to a platform-independent application, said method comprising:
translating source programming language code of the source application to target programming language code of the platform-independent application, wherein the source programming language code comprises Connected Limited Device Configuration (CLDC) code, and wherein the platform-independent programming language is independent of one or more device platforms; and
converting one or more source resources associated with the source application to one or more target resources.

### Claim 24 (depends on 23)

The method of claim 23 further comprising providing a configuration of the source application to the platform-independent application.

### Claim 25 (depends on 23)

The method of claim 23, wherein the translating the source programming language code comprises:
tokenizing one or more characters of one or more input files of the source programming language code to generate a list of tokens;
parsing the list of tokens to generate one or more document object models;
generating an environment document object model comprising the one or more document object models, wherein the one or more input files are cross-referenced within the one or more document object models of the environment document object model; and
analyzing the environment document object model to generate one or more characters of one or more output files of the target programming language code.

### Claim 26 (depends on 25)

The method of claim 25, wherein the analyzing the environment document object model comprises using a depth first search algorithm.

### Claim 27 (depends on 23)

The method of claim 23, wherein the source and the platform-independent programming languages are object oriented programming languages.
