SkillAgentSearch skills...

Mat2py

A complier translating Matlab script into Python code.

Install / Use

/learn @miaoever/Mat2py
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

#Mat2py

Mat2py is short for Matlab to Python - a complier designed for translating Matlab script into the code which may run in Python environment directly without any modification.

<p>Now, it's consist of three main components:the lexer and parser for matlab script language, the code generator which generate corresponding python code. You may use some of these parts in your own project independently under the license.</p>

Notice: mat2py project is in a very early version, so any feedback is expecting :)

####Latest release: 0.1 (2013/08/23)

<br> #Features * Various methods for constructing matrix / vector * Function / script (or combinded in one) file(s) * Function declaration or call(support Variable-length input argument list) * Expressions * Assignments * If statements * Loop statement ( for / while ) * Plugin architecture for loading standard lib function dynamically

#Usage # python mat2py.py source [target]

  • source - the .m file you want to translate.
  • [target](optional) - the output file name , if you don't specify it, the target code will print out on the screen directly.

#Requirement

  • Python 2.7+
  • Numpy*

* If you just want to translate the code without running it right now, the Numpy library is optional.

#License

The MIT License

Copyright (C) 2013 miaoo leo.miao.ever@gmail.com

View on GitHub
GitHub Stars36
CategoryDevelopment
Updated2y ago
Forks8

Languages

Python

Security Score

60/100

Audited on Dec 27, 2023

No findings