Patents
US 8,533,690 B2#18856413 Most CitedActiveUnited States (USPTO)Utility

C-to-java programming language translator

6Forward Citations (#18856413 Global)
0.5/yrCitation Velocity (#17847591 Global)
1.22Citation PageRank (#31080239 Global)
3Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A C-to-Java programming language translator that requires no human intervention, translates literally to preserve both procedure and function in the resulting code, and is independent of the purpose of the source code. The program reads in text from a C file, tokenizes each line for C keywords and punctuation, translates most keywords and expressions, and outputs the result to a Java file. The program is modular so that it is capable of running on multiple operating systems and hardware. The invention implements several methods of translation, including whole-line translation, search/replace translation, context-sensitive translation, idiomatic translation, and second-pass translation. The second-pass translation handles those instances when correct translation of a particular line depends on information in another line. The program of the invention translates a struct into a Java inner class, complete with multiple constructors and private variables, and it translates pointers into their reference equivalents.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 6.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method for automatically and accurately converting C programming language to Java language, comprising using a processing device to perform the steps of: reading in text from a C file; removing unnecessary formatting including, but not limited to, whitespace, to provide a standardized input to later steps in the translation process; performing whole-line translation of lines of code or method in C code that have the same syntax in Java; passing said standardized input to a tokenizer which breaks up the input into tokens for further processing; passing each line of standa

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗