Mohammad Jahanzeb
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Arunkumar Palanisamy
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Martin Sjölund
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Peter Fritzson
Department of Computer and Information Science, Linköping University, Linköping, Sweden
Ladda ner artikel
http://dx.doi.org/10.3384/ecp140961285Ingår i: Proceedings of the 10th International Modelica Conference; March 10-12; 2014; Lund; Sweden
Linköping Electronic Conference Proceedings 96:137, s. 1285-1294
Publicerad: 2014-03-10
ISBN: 978-91-7519-380-9
ISSN: 1650-3686 (tryckt), 1650-3740 (online)
Matlab is a proprietary; interactive; dynamically-typed language for technical computing. It is widely used for prototyping algorithms and applications of scientific computations. Since it is a dynamically typed language; the execution of programs has to be analyzed and interpreted which results in lower computational performance. In order to increase the performance and integrate with Modelica applications it is useful to be able to translate Matlab programs to statically typed Modelica programs.
This paper presents the design and implementation of Matlab to Modelica translator. The Lexical and Syntax analysis is done with the help of the OMCCp (OpenModelica Compiler Compiler parser generator) tool which generates the Matlab AST; which is later used by the translator for generating readable and reusable Modelica code.
Inga referenser tillgängliga