victorlei / smop

Small Matlab to Python compiler
MIT License
1.08k stars 410 forks source link

New similar project [mat2py](https://mat2py.org/) #183

Open chaoqing opened 2 years ago

chaoqing commented 2 years ago

First thank @victorlei to initiate this pioneer work.

But it seems lack of maintenance for long time(#180 ). When I first searched this project and give it a try, unfortunately it did not work. So I followed the issue table(#179 ) and found out the more complete lexer miss_hit. This is the beginning of my project mat2py.

I used the lexer part and generated a new syntax translator under this fork. One can try it out here [https://translate.mat2py.org/](). To be notice, while nothing store in the backend server, this site will upload the input to it for processing. So one can install the package with python3 -m pip install -U mh-python for offline usage.

The main part of the mat2py project is the runtime library in this separate repo [https://github.com/mat2py/mat2py](). It is used to mimicking Matlab behavior like supporting Matlab core functions, keyword end, automatically determining nargout, etc. Give it a try at this online Matlab simulator [https://console.mat2py.org/]() or install the mat2py package with python3 -m pip install -U mat2py. You do not need to worry about privacy when using the website as it is fully local and no information exchange after environment setup. Please refresh the page if you found loading fail because of the bad network connection.

The mat2py support basic math operation and plot command. You may encounter NotImplementedError, then you are welcome to do a feature request like here did.

Once again, thank smop for inspiring me and welcome to give mat2py a try.