Bibliographische Detailangaben
| Titel: |
基于AST的MATLAB到Python 转换器. (Chinese) |
| Alternate Title: |
MATLAB-to-Python code converter based on AST. (English) |
| Autoren: |
郭瑞, 徐文浩, 谢鹏志, 杨威, 宋友 |
| Quelle: |
Computer Engineering & Science / Jisuanji Gongcheng yu Kexue; Jun2025, Vol. 47 Issue 6, p1041-1049, 9p |
| Schlagwörter: |
INDUSTRIAL goods, SOURCE code, ENGINEERING models, ENGINEERING systems, INDUSTRIALIZATION |
| Abstract (English): |
MATLAB is widely used in various stages of industrial product development. However, in practical engineering applications, the mechanistic models built in MATLAB often need to be decoupled. from the MATLAB runtime environment and integrated into real-world engineering systems. Thus, a tool for rapidly converting MATLAB models into deployable engineering solutions is required. To address this, this paper proposes M2P (MATLAB-to-Python), a converter based on abstract syntax tree (AST). The converter involves transforming source code into an AST structure, analyzing it, and applying substitution rules to generate equivalent Python code. Comparative experiments demonstrate that the proposed converter achieves superior conversion performance compared to existing MATLAB-to-Python converters. [ABSTRACT FROM AUTHOR] |
| Abstract (Chinese): |
MATLAB语言被广泛应用于工业领域产品研发的各个环节, 但是在实际工程应用场景中, 需要将其建立的机理模型脱离MATLAB运行环境, 与实际的工程系统集成应用, 故需要一种将MAT-LAB建立的模型快速工程化的工具。为此, 提出一种MATLAB到Python 转换器 M 2 P, 该转换器基于抽象语法树 AST, 将源代码转换到AST结构, 对该结构进行分析并利用替换规则生成结果代码, 最终实现 MATLAB 到 Python的代码等价转换。对比代码转换实验的结果表明, 所提转换器与现有的其他MAT-LAB 到 Python 转换转换器相比具有更高的转换性能。 [ABSTRACT FROM AUTHOR] |
|
Copyright of Computer Engineering & Science / Jisuanji Gongcheng yu Kexue is the property of Computer Engineering & Science and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.) |
| Datenbank: |
Complementary Index |