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.
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.
Notice: mat2py project is in a very early version, so any feedback is expecting :)
####Latest release: 0.1 (2013/08/23)
#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.
- Python 2.7+
* If you just want to translate the code without running it right now, the Numpy library is optional.
The MIT License
Copyright (C) 2013 miaoo firstname.lastname@example.org