victorlei / smop

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

Matlab files with one function without "end" keyword are missing "return" statement in Python #94

Open j8asic opened 7 years ago

j8asic commented 7 years ago

As the title says, when converting .m file that contain a single function without the "end" keyword, smop skips to print "return" statement that contains output variables. Best regards

j8asic commented 7 years ago

The issue also happens with multiple functions in a file not finished with the "end" keyword.