Method and apparatus for code conversion
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)
- 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 ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (23)
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.