Patents
US 9,971,577 B2#34000045 Most CitedActiveUnited States (USPTO)Utility

Method and apparatus for code conversion

3Forward Citations (#34000045 Global)
0.4/yrCitation Velocity (#21624467 Global)
0.97Citation PageRank (#43468929 Global)
23Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

The present invention relates to the field of computer programming, in particular, to a method and apparatus for code conversion in which the codes in the code file to be converted or the code tree to be converted is read and stored into the stack and popped up in the last-in first-out sequence of the stack, and then the code line or the child node currently popped up is resolved into the file to be converted, and lastly the natural semantics comparison table is traversed, and the inter-conversion between the codes and the natural language is automatically carried out, so as to avoid the programmers from manually adding the marks and notes for the codes, which greatly decreases workload of the programmers, and can intuitively display the direct logical relationship of the codes, and at the same time, depending on different situations, the codes can be represented selectively in different forms, facilitating the creating, searching and maintaining of the codes.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for code conversion, comprising: reading all code lines of a code file to be converted, and recording a total number of lines; creating an original stack of the code lines and a syntax phrase stack according to the total number of lines, and pushing line by line all of the code lines into the original stack of the code lines; popping-up line by line the code lines according to a sequence of the original stack, from the original stack of the code lines; resolving a currently popped-up code line into a phrase to be converted; storing into the syntax phrase stack the phrase to be convert

Technical Overview & Description

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

References Cited — Backward Prior Art (23)

PatentTitleYearCitations
US 4,989,145 ASyntax analysis and language processing system199158
US 5,105,353 ACompressed LR parsing table and method of compressing LR parsing tables199236
US 5,487,147 AGeneration of error messages and error recovery for an LL(1) parser199681
US 5,671,416 AApparatus and a method for searching and modifying source code of a computer program199792
US 5,870,608 AMethod and apparatus for displaying text including context sensitive information derived from parse tree199938
US 5,892,951 AMethod and apparatus for efficient evaluation of semantic attributes in LALR parsing199915
WO 0,186,491 A2Machine translation techniques—2
US 6,415,381 B1Mixed execution stack and exception handling200217
US 2003009744 A1Source code line counting system and method—19
US 2004083092 A1Apparatus and methods for developing conversational applications—308
US 2007180455 A1Qualitatively Annotated Code—15
US 2010037212 A1Immutable parsing—17
CN 101,763,342 AComputer code generating method, natural language explanation center and application control terminal—13
CN 101,782,849 AControl method and device for software annotation—8
US 7,810,024 B1Efficient access to text-based linearized graph data201022
CN 102,339,218 AProgram code annotating management method and device—19
CN 102,508,689 AData processing system capable of maintaining dependency relationship in advanced language program data flow diagram extraction—21
US 2014149969 A1Source code separation and generation for heterogeneous central processing unit (CPU) computational devices—31
US 8,762,969 B2Immutable parsing20148
US 2014229919 A1Semantic stack trace—18
US 2015242396 A1Translating method for translating a natural-language description into a computer-language description—21
US 2015363176 A1Method and apparatus for code conversion—14
US 2017109336 A1Annotating text using emotive content and machine learning—5

Non-Patent Literature (5)

  • International Search Report and English translation dated Sep. 3, 2014, 5 pages.
  • Notice of Allowance dated May 23, 2016 received in connection with priority Chinese Application No. 201310728292.6, 1 page.
  • Office Action dated Jul. 29, 2015, in Chinese Application No. 2013107282926, 3 pages.
  • Second Office Action dated Dec. 16, 2015 received in connection with priority Chinese Application No. 201310728292.6, 4 pages.
  • Third Office Action dated Apr. 26, 2016 received in connection with priority Chinese Application No. 201310728292.6, 4 pages.