Program conversion device and storage medium
Abstract
PROBLEM TO BE SOLVED: To convert a program without losing comment information, the format of a program or the like by generating the syntax tree of the input program and the syntax tree of a conversion rule, rewriting the syntax tree of the input program with the syntax tree of the conversion rule and outputting it as a converted program. SOLUTION: A syntax analysis device 101 analyzes the syntax of the input program 102 of a conversion object and the conversion rule 103 by using a type hierarchy for nodes constituting the syntax tree, and generates the syntax tree 104 of the input program 102 and the syntax tree 105 of the conversion rule 103. A syntax tree rewriting device 106 rewrites the syntax tree of the input program 102 by the syntax tree of the rewriting rule 105. An output processor 108 outputs the syntax tree 107 of the input program 102 as the converted program 109. The syntax analysis device 101 accumulates text information of the input program at the time of analyzing words and syntax, and they are kept in the respective nodes of the syntax tree being a syntax analysis result.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 3.
Claims (0)
No claim text indexed for this record.
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 (0)
No backward patent references recorded.